Create image
>-
Creates an image given a prompt. Internally routes to a chat completions model with image generation capabilities.
Authorization
bearerAuth Bearer token authentication using API keys
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/images/generations" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A white siamese cat" }'{
"created": 0,
"data": [
{
"b64_json": "string",
"revised_prompt": "string"
}
]
}How is this guide?
Last updated on