POST
/
v1
/
image
/
generate
curl --request POST \
  --url https://geoff.ai/api/v1/image/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "prompt": "A futuristic city skyline at dusk, cyberpunk style",
    "model": "magma",
    "width": 1024,
    "height": 1024,
    "num_images": 1
  }'
{
  "data": {
    "images": [
      {
        "url": "https://geoff.ai/api/v1/files/img_xyz/content",
        "width": 1024,
        "height": 1024
      }
    ]
  },
  "trace_id": "04ede0ab069fb1ba8be5156a24b1e081"
}

Authorization

Authorization
string
required
Bearer token. Bearer API_key, can be found in Settings > API Keys.

Request Body

prompt
string
required
Text description of the image to generate.
model
enum
default:"magma"
Model to use. Default: magma.
width
integer
Image width in pixels. Default: 1024.
height
integer
Image height in pixels. Default: 1024.
num_images
integer
Number of images to generate. Default: 1. Max: 8.
curl --request POST \
  --url https://geoff.ai/api/v1/image/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "prompt": "A futuristic city skyline at dusk, cyberpunk style",
    "model": "magma",
    "width": 1024,
    "height": 1024,
    "num_images": 1
  }'
{
  "data": {
    "images": [
      {
        "url": "https://geoff.ai/api/v1/files/img_xyz/content",
        "width": 1024,
        "height": 1024
      }
    ]
  },
  "trace_id": "04ede0ab069fb1ba8be5156a24b1e081"
}