Skip to content
Request
Response

Images

Image API for image generation and editing.

Image Generation

Endpoint

POST https://ai-tokenhub.com/v1/images/generations

Request Body

ParameterTypeRequiredDescription
modelstringYesImage generation model
promptstringYesImage description
nintegerNoNumber of images (1-10)
sizestringNoImage size (1024x1024/512x512/256x256)
stylestringNoStyle (vivid/natural)

Request Example

bash
curl https://ai-tokenhub.com/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "dall-e-3",
    "prompt": "A cute baby sea otter floating in water",
    "n": 1,
    "size": "1024x1024"
  }'

Use Cases

  • Creative Design: Posters, illustrations
  • Product Display: E-commerce images
  • Content Creation: Article covers
  • Marketing Materials: Ads and banners