AI model API · 8 published image models · per request / per Token
Image and text AI,
ready for your product.
One API for image and text models. Compare capabilities, prices and billing units, follow the docs, and retrieve results with a task ID.
https://opengptapi.com/api/v1Public pricing · per request and per Token
Image models are priced per request; text models are priced per million tokens. Start with public tiers, then confirm the live quote in the details.
Open the pricing tool for exact tiersPublished image-model starting prices
Lowest published quote per model, not equivalent quality or parameters. Check the exact tier and route before submitting.
| Model | Starting price |
|---|---|
| Nano Banana 2 Lite | 0.006712 |
| gpt-image-2 | 0.008950 |
| Nano Banana 2 | 0.017899 |
| Nano Banana Pro | 0.026848 |
| gpt-image-2.5-flare | 0.039602 |
| gpt-image-2.5-sunburst | 0.039602 |
Price snapshot:
TEXT MODEL · TOKEN PRICING
Text models · billed per million tokens
Choose a model and pricing group. Input, output and cache are billed separately, with rates locked at task creation.
Group 001
claude-opus-5-5
- Input / 1M
- $0.661827
- Output / 1M
- $3.309132
- Cache read / 1M
- $0.066183
- Cache write / 1M
- $0.827283
Group 002
claude-opus-5-5
- Input / 1M
- $5.000000
- Output / 1M
- $25.000000
- Cache read / 1M
- $5.000000
- Cache write / 1M
- $5.000000
Group 003
claude-opus-5-5
- Input / 1M
- $8.500000
- Output / 1M
- $42.500000
- Cache read / 1M
- $8.500000
- Cache write / 1M
- $8.500000
Group 004
claude-opus-5-5
- Input / 1M
- $36.500000
- Output / 1M
- $182.500000
- Cache read / 1M
- $36.500000
- Cache write / 1M
- $36.500000
Compare input and output rates in a chart
Compare group rates
Compare input and output on the same unit; cache rates are listed above. Tasks settle with locked rates and verified usage.
| Group | Input | Output |
|---|---|---|
| claude-opus-5-5 · Group 001 | 0.661827 | 3.309132 |
| claude-opus-5-5 · Group 002 | 5.000000 | 25.000000 |
| claude-opus-5-5 · Group 003 | 8.500000 | 42.500000 |
| claude-opus-5-5 · Group 004 | 36.500000 | 182.500000 |
Price snapshot: 2026-11-11T18:06:23.801292Z
Configured image models
gpt-image-2.6-flare
Image generation with published, verified routes.
- 分组 001
- $0.019787 / request
- 分组 004
- $0.098932 / request
- 分组 002
- $0.032978 / request
- 分组 003
- $0.065955 / request
gpt-image-2.6-sunburst
Image generation with published, verified routes.
- 分组 003
- $0.065955 / request
- 分组 002
- $0.032978 / request
- 分组 001
- $0.019787 / request
- 分组 004
- $0.098932 / request
Quick start
With an API key ready, replace the example URL, key and prompt. Save the returned task ID to check its status and download results.
curl -X POST "$OGA_BASE_URL/api/v1/images/tasks" \
-H "Authorization: Bearer <YOUR_OGA_API_KEY>" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: <UNIQUE_IDEMPOTENCY_KEY>" \
-H "X-Request-Id: <UUID_V4>" \
-H "Accept-Language: en-US" \
--data '{
"model": "gpt-image-2",
"operation": "generation",
"prompt": "A quiet blue observatory above the clouds",
"n": 1,
"size": "1024x1024",
"quality": "standard",
"response_format": "url",
"response_mode": "async"
}'import os
import httpx
response = httpx.post(
os.environ["OGA_BASE_URL"] + "/api/v1/images/tasks",
headers={
"Authorization": "Bearer <YOUR_OGA_API_KEY>",
"Content-Type": "application/json",
"Idempotency-Key": "<UNIQUE_IDEMPOTENCY_KEY>",
"X-Request-Id": "<UUID_V4>",
"Accept-Language": "en-US",
},
json={
"model": "gpt-image-2",
"operation": "generation",
"prompt": "A quiet blue observatory above the clouds",
"n": 1,
"size": "1024x1024",
"quality": "standard",
"response_format": "url",
"response_mode": "async"
},
timeout=30,
)
response.raise_for_status()
print(response.json())Point the base URL at this site, drop in your API key — the rest stays the same.
Know what happens after a request
Clear explanations of billing, task status and image retention.
Results auto-expire
Generated images stay on the server for 3 hours, then are deleted automatically. No long-term storage.
Line-item billing
Every task carries its own ledger record: quote, hold, settlement, and refund are all inspectable.
Consistent integration
Use REST, OpenAPI documentation, or MCP to work with the same image-task capabilities.
No blind resubmissions
Look up the original task if a response is uncertain. Do not create a second generation request just to check the first.
A few things before you start
Find more capability, pricing, and refund details in the model catalog and trust guide.
Review trust boundariesWhich model should I start with?+
Compare price and supported operations first. Open the model detail when you need an exact resolution, aspect ratio, or reference-image setting.
How is pricing calculated?+
Image models are priced per request; text models separate input, output and cache Tokens. Pages show the current public snapshot and tasks lock the concrete quote at creation. No subscription.
Can I use the OpenAI SDK directly?+
Text Claude Opus 5.5 supports the controlled OpenAI-compatible /v1/models and /v1/chat/completions endpoints; images continue to use OGA-native /api/v1 endpoints. The API docs cover both paths.
How do I retrieve an image after submitting a task?+
Save the task_id and retrieve that same task for status and results. If a network response is uncertain, check the existing task instead of resubmitting with a different idempotency key.
Found your model? Start integrating.
Production service, signup and payment gates are open. Review pricing, create a key, fund the account and invoke the API.
Create an API key Per request / per Token · No subscription · Traceable tasks