Skip to main content
POST

Authorization

  • Auth Type: Bearer Auth (In: header)
  • Format: Authorization: Bearer <YOUR_API_KEY>
  • Description: Use Bearer <YOUR_API_KEY>. Format: Authorization: Bearer sk-xxxxxx.
  • API Key: where API Key is your AGCloud API KEY

Parameters

Core Parameters

Multimodal Input

Image Configuration

Model Comparison

Note:
  • Gemini 3.1 Flash Image Preview: Optimized for speed and high-volume use cases. Supports 0.5K resolution and extra ultra-wide/tall aspect ratios (1:4, 4:1, 1:8, 8:1). Also supports Google Image Search Grounding.
  • Gemini 3 Pro Image Preview: Optimized for professional asset production with advanced reasoning for complex creation tasks.
  • Gemini 2.5 Flash Image: Supports a maximum of 3 reference images and 1K resolution only.
Aspect Ratio & Image Size:
  • By default, the model keeps the output image the same size as the input image; otherwise it produces a 1:1 square. You can control the aspect ratio of the generated image with the aspect_ratio field under image_config in your request, as shown below: