https://yesapi.online/v1| Field | Value |
|---|---|
| Model | gpt-image-1-mini |
| API type | chat completions API |
POST https://yesapi.online/v1/chat/completions| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Fixed value: gpt-image-1-mini |
prompt | string | No | - | Task prompt or instruction |
messages | array | Yes | - | Conversation messages for chat models |
stream | boolean | No | false | Enable streaming output for supported chat models |
callback_url | string | No | - | Callback URL for asynchronous media tasks |
{
"id": "task_or_response_example",
"model": "gpt-image-1-mini",
"status": "succeeded",
"created": 1784534400
}| Field | Type | Description |
|---|---|---|
id | string | Request or task ID |
model | string | Model used for the request |
status | string | Task status for asynchronous APIs |
usage | object | Token or usage details when available |
error | object | Error details when the request fails |
| Status | Type | How to Fix |
|---|---|---|
400 | Invalid request | Check required fields and parameter formats |
401 | Unauthorized | Verify your API key and Authorization header |
402 | Insufficient balance | Check account balance or plan quota |
429 | Rate limited | Reduce concurrency or add retry backoff |
500 | Service error | Retry later and keep the request ID for support |
Note: This API page documents the unified YesAPI request format. Users need to provide their own YesAPI API key when testing. Model availability depends on the current YesAPI console status.
curl --location '/v1/images/generations' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-1-mini",
"prompt": "A cinematic product photo of a futuristic sneaker",
"size": "1024x1024",
"n": 1,
"response_format": "url"
}'{
"id": "img_example",
"object": "image.generation",
"model": "gpt-image-1-mini",
"data": [
{
"url": "https://example.com/image.png"
}
]
}