Skip to content
Docs menu

Image models

GPT-4o Image

On this page

High-fidelity image generation with strong text rendering.

modelIdgpt-4o-image
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationmodelIdEndpointRequired input
Defaultgpt-4o-imagePOST /api/v1/generateprompt, size
Poll taskGET /api/v1/task/{id}?model=gpt-4o-image

Input parameters

FieldTypeRequiredValues / example
imageUrlstringNoImage URL
promptstringYesText value (default: A watercolor map of a fictional seaside town, hand-lettered street names, tiny sailboats in the bay, pastel palette.)
sizestringYesOptions: 3:2 | 2:3 | 1:1 (default: 3:2)
isEnhancebooleanNoIn most cases, enabling this is unnecessary. However, for specific scenarios like generating 3D images, enabling it can produce a more refined effect. Use discretion. (true/false) (default: false)

Example request

bash
curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer $YOUBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"gpt-4o-image","input":{"imageUrl":"https://example.com/input.jpg","prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","size":"3:2","isEnhance":false}}'