DataEyesAI
Official SiteConsoleDocs Home
Getting StartedDeveloper ToolsAI Models APITerms & Policies
Official SiteConsoleDocs Home
Getting StartedDeveloper ToolsAI Models APITerms & Policies
  1. Image Models
  • Documentation
    • Getting Started
      • Welcome to DataEyesAI
      • Quickstart
      • API Keys and Authentication
      • Base URL and SDKs
      • Models, Groups, and Pricing
    • Developer Tool Integration
      • Claude Code
      • Claude Code for VS Code
      • Codex
      • OpenClaw
      • OpenCode
      • Cline
      • Gemini CLI
      • Grok CLI
      • n8n
      • AutoClaw
      • Other tools
      • Claude Code 400 troubleshooting
    • AI Models API
      • API Overview
      • Chat Completions
      • Responses
      • Messages (Claude)
      • Gemini (generateContent)
      • Embeddings
      • Image Models
        • Images
        • Gemini Image Generation
        • Grok Imagine Image
      • Midjourney format
        • Midjourney API Reference
        • Task query interface
        • Upload image
        • Get seed (Seed)
        • Submit Imagine task
        • Query tasks based on ID list
        • FaceSwap
        • Execute Action operation
        • /mj/submit/blend
        • Submit Describe task
        • Submit Modal
        • Refresh link
        • Edit image
        • Query task status by task ID
        • Get the seed of the task image
      • Video Model
        • FLUX Video Generation (flux-3-video)
        • Grok Video Generation
          • 00-Overview
          • 01-Text-to-Video
          • 02-Image-to-Video
          • 03-Reference-to-Video
          • 04-Video-Editing
          • 05-Video-Extension
        • Seedance Video Generation
          • 00-Overview
          • 01-Create-Video-Generation-Task
          • 02-Query-Video-Generation-Task
          • 03-Query-Video-Generation-Task-List
          • 04-Cancel-or-Delete-Task
          • Seedance Private Asset Library API Documentation
        • MiniMax-H3 Video Generation
          • 00-Overview
          • 01-Create-Video-Generation
          • 02-Create-Video-Regeneration
          • 03-Create-H3-Context-IR
          • 04-Query-Task
          • 05-List-Tasks
          • 06-Cancel-or-Delete-Task
        • Hailuo Video Generation
          • 00-Overview
          • 01-Text-to-Video-T2V
          • 02-Image-to-Video-I2V
          • 03-First-Last-Frame-FL2V
          • 04-Subject-Reference-S2V
          • 05-Query-Task-Status
          • 06-Video-Download
          • 99-Appendix-Camera-Movement-and-Webhooks
        • Jimeng Video Generation
          • 00-Overview
          • 01-3.0-Pro-Video-Generation
          • 02-720P-Text-to-Video
          • 03-720P-Image-to-Video-First-Frame
          • 04-720P-Image-to-Video-Start-End-Frame
          • 05-720P-Image-to-Video-Camera
          • 06-1080P-Text-to-Video
          • 07-1080P-Image-to-Video-First-Frame
          • 08-1080P-Image-to-Video-Start-End-Frame
          • 09-Error-Codes
        • Kling AI Video Generation
          • 00-Overview
          • 01-Text-to-Video
          • 02-Image-to-Video
          • 03-Omni-Video
          • 04-Multi-Image-to-Video
          • 05-Motion-Control
          • 06-Multi-Elements
          • 07-Video-Extension
          • 08-Lip-Sync
          • 09-Avatar
          • 10-Text-to-Audio
          • 11-Video-to-Audio
          • 12-TTS
          • 13-Custom-Voices
          • 14-Image-Recognition
          • 15-Element-Management
          • 16-Video-Effects
          • 17-Kling-4.0-Video-Generation
        • Vidu Video Generation
          • 00-Overview
          • 01-Text-to-Video
          • 02-Image-to-Video
          • 03-Reference-to-Video
          • 04-Start-End-Frame
          • 05-Multi-Frame
          • 06-Scene-Template
          • 07-Template-Story
          • 08-Query-Tasks
        • HappyHorse
          • HappyHorse Text-to-Video
          • HappyHorse Image-to-Video (First Frame)
          • HappyHorse Reference-to-Video
          • HappyHorse Video Editing
        • Wan Video Generation
          • 00-Overview.md
          • 01-Text-to-Video
          • 02-Image-to-Video
          • 03-Reference-to-Video
          • 04-Video-Editing
          • 05-First-Last-Frame-to-Video
          • 06-Motion-Transfer-and-Character-Swap
          • 07-Digital-Human-Video
          • 08-VACE-Video-Editing
          • 09-Query-Task
      • Audio API
        • Audio API
        • Gemini TTS API
        • Google DeepMind Lyria API
        • Elevenlabs Speech to Text API Reference
    • Search / Reader Product
      • Search & Reader
      • Web Search
      • Search and Read
      • Video Search
      • Web Reader
      • Document Parsing
      • Trending
      • Weather
      • All City ID
    • Advanced & System API
      • FAQ
      • System interface
        • API Key & Quota Query API
        • API Key Management API
      • API Reference​​
        • Error Codes
        • Rate Limits and Billing Rules
      • List models
        • Models
  • Terms & Policies
    • DataEyesAI API Terms of Service
    • DataEyesAI Legal Notice and Privacy Policy
    • DataEyesAI Paid Services Agreement
    • Automatic Renewal Service Rules
  1. Image Models

Images

An OpenAI Images-compatible API. Image models such as GPT Image, Seedream, FLUX, and Grok Imagine all generate images through it. To switch models, change model and a few model-specific parameters.
POST https://studio.dataeyes.ai/v1/images/generations
For Gemini image models (Nano Banana), see Gemini Image Generation. For Midjourney, see the Midjourney API.

Models at a glance#

SeriesExample modelsReturnsNotes
GPT Imagegpt-image-2Base64 (b64_json)Also supports image editing via POST /v1/images/edits
SeedreamByteDance-Seedream-5.0URLSee below
FLUXflux-3-image, flux-2-max, flux-kontext-maxURLSee below
Grok Imaginegrok-imagine-image-2.0, grok-imagine-imageURL or Base64Grok Imagine Image
For all available image models and prices, see the Model Hub.

Quick example#

cURL
Python
Node.js
Response (Base64 truncated):
{
  "created": 1792856918,
  "data": [
    {
      "b64_json": "iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAIAAADwf7zU…",
      "revised_prompt": "A shiba inu wearing headphones, flat illustration, white background"
    }
  ],
  "usage": {
    "input_tokens": 12,
    "output_tokens": 272,
    "total_tokens": 284
  }
}

Request parameters#

Supported parameters vary by model. The table lists common parameters and where they apply:
ParameterTypeRequiredApplies toDescription
modelstringYesAllModel name
promptstringYesAllImage description
sizestringNoAllGPT Image, for example 1024x1024; Seedream, for example 2K
qualitystringNoGPT Imagelow, medium, high. Higher is slower and costs more
nintegerNoGPT ImageNumber of images. Keep it at 1 and send concurrent requests if you need more
response_formatstringNoSeedreamPass url to get an image URL
imagestring / arrayNoSeedream, FLUXReference image URL or Base64, for image-to-image and multi-image fusion
watermarkbooleanNoSeedreamWhether to add a watermark
About n
Some models cannot generate multiple images in one request. With n greater than 1, they may return only one image. If you need several images, send several requests with n set to 1.

Seedream#

Seedream supports text-to-image, single-image reference, and multi-image fusion. Which one you get depends on whether you pass image and how many images you pass.
Text-to-image
Image-to-image
Multi-image fusion
Response:
{
  "model": "seedream-5-0-260128",
  "created": 1792855371,
  "data": [
    {
      "url": "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/seedream-5-0/…jpeg?X-Tos-Expires=86400&…",
      "size": "2048x2048"
    }
  ],
  "usage": { "generated_images": 1, "output_tokens": 16384, "total_tokens": 16384 }
}

FLUX#

Returns data[].url. Supported sizes and parameters vary by FLUX model; see the model details in the Model Hub.

Grok Imagine#

For parameters (aspect_ratio, resolution, quality), image editing, and common errors, see Grok Imagine Image.

Saving results#

URL: Image URLs expire (24 hours for Seedream and 2 hours for FLUX in our tests). Download and store images soon after generation.
Base64: Decode and write to a file, as in the quick example above.

FAQ#

Generation takes a long time
Reference image download fails
How do I edit an existing image?
Previous
Embeddings
Next
Gemini Image Generation