Skip to main content
Agnes Image 2.1 Flash is an upgraded image generation model from Sapiens AI. It supports text-to-image and image-to-image workflows. Compared with version 2.0, it is better suited for high-information-density images, complex compositions, and detail-rich visual scenes.

Model

agnes-image-2.1-flash

API Endpoint

POST /v1/images/generations

Core Optimization

High-information-density images, complex visual details, and semantic alignment.

Current Price

Image generation is currently $0 / image.

Overview

Agnes Image 2.1 Flash can generate images from text prompts and transform, redraw, or stylize input images. Results can be returned as image URLs or Base64 data.

High-density Visuals

Better suited for complex scenes, rich compositions, and multi-layer visual elements.

Composition Preservation

Preserves the original composition and subject layout as much as possible during image-to-image editing.

Core Capabilities

Text-to-image

Generate high-quality images from natural language prompts.

Image-to-image

Transform or improve existing images based on prompt instructions.

High-information-density Images

Optimized for detail-rich images with complex layouts and dense visual elements.

Composition Preservation

Preserve the original composition and subject layout when editing input images.

Flexible Size Control

Use resolution tiers such as 1K, 2K, 3K, or 4K with a supported aspect ratio.

URL / Base64 Output

Return generated images as URLs or Base64 data.

Use Cases

Creative Design

Concept art, visual exploration, and poster drafts.

Marketing Content

Campaign images, product visuals, and social media creatives.

High-density Visual Generation

Detailed scenes, complex environments, and rich compositions.

Image Transformation

Style transfer, scene relighting, and background transformation.

Product Visualization

Product photos, mockups, and commercial visuals.

Social Media Assets

Covers, banners, thumbnails, and post images.

API Reference

Endpoint

Headers

Request Parameters

Size and Ratio

For predictable output dimensions, use size together with ratio.
  • Recommended size values: 1K, 2K, 3K, 4K
  • Supported ratio values: 1:1, 3:4, 4:3, 16:9, 9:16, 2:3, 3:2, 21:9
  • If you request an unsupported exact size such as 1920x1080 or 2560x1440, the service may map it to the nearest supported tier and aspect ratio.
  • For common 16:9 display assets such as 1920x1080 or 2560x1440, request size: "2K" with ratio: "16:9" and then crop or resize downstream if you need an exact final canvas.
1920x1080 and 2560x1440 are standard display resolutions, but they are not the native output dimensions for this image model. When exact sizes are not supported, the response size may be normalized, for example to the 16:9 1K output size 1312x736.

Output Dimension Reference

Example: 16:9 2K Output

This returns the 16:9 2K tier output size, 2624x1472.

Important Notes

Do not place response_format at the top level of the request body. For URL output, use extra_body.response_format: "url". For image-to-image Base64 output, use extra_body.response_format: "b64_json".

Text-to-image

Required parameters are model, prompt, and size.

Size + Ratio

Use tier-based size values such as 2K with ratio, for example 16:9.

Image-to-image

Provide an input image URL or Data URI Base64 value in extra_body.image.

Base64 Output

For text-to-image, use top-level return_base64: true.

No tags Required

Image-to-image requests do not require tags: ["img2img"].

Request Examples

Response Format

Generated image URL path:

Response Fields

Prompting Guide

For better image generation results, use a clear prompt structure that describes the subject, environment, style, lighting, composition, and quality requirements.
Clearly describe what should change and what should remain unchanged.
Agnes Image 2.1 Flash is optimized for complex and detail-rich visuals. For best results, describe the visual hierarchy clearly.Recommended elements:
  • Main subject
  • Background environment
  • Important secondary details
  • Style and lighting
  • Composition constraints
  • Elements to preserve for image-to-image tasks

Common Errors and Troubleshooting

Do not place response_format at the top level.Incorrect:
Correct:
Do not pass tags: ["img2img"]. Image-to-image only requires an input image array.
Use public HTTPS image URLs that do not require login, cookies, or private request headers. If the image cannot be made public, use Data URI Base64 input.
Image generation may take several seconds to tens of seconds depending on prompt complexity, image size, and server load. A client timeout of 60s - 360s is recommended.
Image-to-image generation requires an input image array in extra_body.image.

Pricing

Integration Checklist

Use agnes-image-2.1-flash as the model name.
Use https://apihub.agnes-ai.com/v1/images/generations as the API endpoint.
For text-to-image, include model, prompt, and size.
For predictable dimensions, use size tiers such as 1K or 2K together with ratio.
For image-to-image, provide input images through extra_body.image.
Do not expose temporary or real API keys in public documentation.