POST /v1/images/generations
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model |
string | yes | Image model ID (e.g. gpt-image-2) |
prompt |
string | yes | Image description |
size |
string | no | e.g. 1024×1024 |
Image models are billed per call — see the model page for the price.
Request
curl https://api.onefast.ai/v1/images/generations
-H "Content-Type: application/json"
-H "Authorization: Bearer sk-your-api-key"
-d '{
"model": "gpt-image-2",
"prompt": "A red panda surfing in space",
"size": "1024x1024"
}'