DemoQA AIDocs
API ReferenceImages

Создать изображения

Ключ используется браузером напрямую и сохраняется только для текущей вкладки.
POST
/images/generations

Authorization

bearerAuth
AuthorizationBearer <token>

Ключ вида dqa_live_... из раздела API-ключей DemoQA AI.

In: header

Header Parameters

Idempotency-Key?string

Устойчивый уникальный ключ одного логического billable-запроса.

Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/images/generations" \  -H "Idempotency-Key: 42dc6f91-e882-4e79-91af-b7bef0458887" \  -H "Content-Type: application/json" \  -d '{    "model": "image-model-id",    "prompt": "Минималистичная схема CI pipeline на светлом фоне",    "n": 1,    "size": "1024x1024"  }'
{  "created": 0,  "data": [    {      "b64_json": "string",      "mime_type": "string",      "revised_prompt": "string"    }  ],  "usage": {}}