Image Generation API

AI image generation
and editing via API

Generate images from text and edit existing images with natural language instructions. Four AI models - Google Gemini 3 Pro, Gemini 3.1 Flash, Gemini 2.5 Flash, and ByteDance Seedream V5 Lite.

4 modelsGenerate & EditFrom 5 credits

Image Generation

Create images from text prompts. Describe what you want - product photos, concept art, marketing assets, UI mockups - and get high-quality images in seconds.

POST /v1/images/.../generate/

Image Editing

Edit existing images with natural language instructions. Upload up to 14 source images and describe changes - background removal, style transfer, object modification, and more.

POST /v1/images/.../edit/

Four models, one API

Each model has different strengths. All share the same REST API pattern.

Generate images in one API call

Gemini 3.1 Flash - Text to Image

Request

curl -X POST https://api.3daistudio.com/v1/images/gemini/3-1/flash/generate/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a futuristic sports car in a neon-lit city",
    "aspect_ratio": "16:9"
  }'

Response

{
  "task_id": "c3d4e5f6-a7b8-...",
  "created_at": "2026-02-25T12:00:00Z"
}

// Poll: GET /v1/generation-request/{task_id}/status/
// → { "status": "FINISHED",
//     "results": [{ "asset_url": "..." }] }

Explore related APIs

Turn your generated images into 3D models or use them as texturing references.

Frequently asked questions

Start generating images

Get an API key and generate your first image in under 5 minutes. From 5 credits per image.