Images
Image API for image generation and editing.
Image Generation
Endpoint
POST https://ai-tokenhub.com/v1/images/generationsRequest Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Image generation model |
| prompt | string | Yes | Image description |
| n | integer | No | Number of images (1-10) |
| size | string | No | Image size (1024x1024/512x512/256x256) |
| style | string | No | Style (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