> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Jimeng Text-to-Image 3.1

Based on Jimeng’s text-to-image technology, version 3.1 improves visual quality, stylistic precision and variety, and detail while retaining the ability to render text from the prompt.

* Model ID: `jimeng_t2i_v31`
* Pricing: Check the [Model Hub](https://geekai.co/models?platform=jimeng\&type=image) for current prices.
* Endpoint: `https://geekai.co/api/v1/images/generations`
* Parameters: See the [Image API reference](https://docs.geekai.co/en/api/image/generations.md).
* Authentication: [Get an API key](https://docs.geekai.co/en/docs/quick_start.md).

> [!NOTE]
>
> The following Image API parameters are not supported:
>
> * `negative_prompt`
> * `image`
> * `strength`
> * `aspect_ratio`
> * `quality`
> * `style_preset`
> * `output_format`
> * `mask`
> * `background`
> * `response_format`
> * `watermark`
>
> See also: [Official Jimeng Text-to-Image 3.1 API documentation](https://www.volcengine.com/docs/85621/1756900).

For Jimeng Text-to-Image 3.1, use `size` to set the output width and height:

Recommended aspect ratios:

* Standard definition (1K):

| Aspect ratio | Pixel dimensions |
| - | - |
| 1:1 | 1328x1328 |
| 4:3 | 1472x1104 |
| 16:9 | 1664x936 |
| 3:2 | 1584x1056 |
| 21:9 | 2016x864 |

* High definition (2K):

| Aspect ratio | Pixel dimensions |
| - | - |
| 1:1 | 2048x2048 |
| 4:3 | 2304x1728 |
| 16:9 | 2560x1440 |
| 3:2 | 2496x1664 |
| 21:9 | 3024x1296 |

The allowed range for width × height in pixels is `[512x512, 2048x2048]`.

### Text-to-image generation

Generate an image from a text prompt with Jimeng Text-to-Image 3.1. Enable `enhance_prompt` to expand and refine the input text:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"jimeng_t2i_v31",
    "prompt": "Draw a cute puppy playing",
    "size": "1472x1104",
    "enhance_prompt": true
}'
```

The response is a JSON object containing the URL of the generated image:

```json theme={null}
{
    "model": "jimeng_t2i_v31",
    "task_id": "46c69f29-54fd-4f82-b41c-802f4a8e86c4",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2025/12/30/a7442485b5235a0e64e6954cfd7641b6.jpeg"
        }
    ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.