You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+
## Project Overview
6
+
7
+
C# SDK for the [Ideogram](https://ideogram.ai/) AI image generation platform, auto-generated from the Ideogram OpenAPI specification using [AutoSDK](https://github.com/HavenDV/AutoSDK). Published as a NuGet package under the `tryAGI` organization.
8
+
9
+
## Build Commands
10
+
11
+
```bash
12
+
# Build the solution
13
+
dotnet build Ideogram.sln
14
+
15
+
# Build for release (also produces NuGet package)
16
+
dotnet build Ideogram.sln -c Release
17
+
18
+
# Run integration tests (requires IDEOGRAM_API_KEY env var)
19
+
dotnet test src/tests/IntegrationTests/Ideogram.IntegrationTests.csproj
20
+
21
+
# Regenerate SDK from OpenAPI spec
22
+
cd src/libs/Ideogram && ./generate.sh
23
+
```
24
+
25
+
## Architecture
26
+
27
+
### Code Generation Pipeline
28
+
29
+
The SDK code is **entirely auto-generated** — do not manually edit files in `src/libs/Ideogram/Generated/`.
30
+
31
+
1.`src/libs/Ideogram/openapi.yaml` — the Ideogram OpenAPI spec (fetched from `https://api.ideogram.ai/openapi.json`)
32
+
2.`src/helpers/FixOpenApiSpec/` — converts OpenAPI 3.1 → 3.0 format for compatibility
33
+
3.`src/libs/Ideogram/generate.sh` — orchestrates: download spec → fix spec → run AutoSDK CLI → output to `Generated/`
34
+
4. CI auto-updates the spec every 3 hours and creates PRs if changes are detected
35
+
36
+
### Project Layout
37
+
38
+
| Project | Purpose |
39
+
|---------|---------|
40
+
|`src/libs/Ideogram/`| Main SDK library (`IdeogramApi`) |
41
+
|`src/tests/IntegrationTests/`| Integration tests against real Ideogram API |
0 commit comments