POST
/
v1
/
images
/
generations
curl --request POST \
  --url https://api.bieapi.com/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "dall-e-3",
  "prompt": "A painting of a cat."
}'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "image": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

The model to use (e.g., dall-e-2-mini).

prompt
string
required

Prompt for the image generation.

Response

200 - application/json
Successful response
id
string

Unique ID of the response.

object
string

Type of the response object.

created
integer

Timestamp of the response creation.

image
string

URL of the generated image.