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

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Flux 3.1 API

> Flux 3.1 API on Venice: image generation and image editing up to 4K, from $0.04 per image. Anonymized access without your identity.



## Flux 3.1 API

Flux 3.1 is an image generation and image editing model by Black Forest Labs, available on the Venice API as `flux-3-1-image`. The provider of this model may retain prompt data (though it is anonymized by Venice). For sensitive content, use a private model.

Generates detailed images up to 4K with precise composition, lifelike textures, and improved text rendering.

### Flux 3.1 API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `flux-3-1-image` | Generate | Anonymized | \$0.04 / image |
| `flux-3-1-image-edit` | Edit | Anonymized | \$0.04 / edit |

### Flux 3.1 specifications

| Spec | Value |
| - | - |
| Provider | Black Forest Labs |
| Released | Dec 4, 2026 |
| Privacy | Anonymized |
| Status | Stable |
| Resolutions | 1K, 2K, 4K |
| Aspect ratios | 1:1, 21:9, 2:1, 16:9, 3:2, 7:5, 4:3, 5:4, 4:5, 3:4, 5:7, 2:3, 9:16, 1:2 |
| Prompt limit | 32,000 characters |

### How to use the Flux 3.1 API

Send requests to `POST https://api.venice.ai/api/v1/image/generate` with `"model": "flux-3-1-image"` and your API key.

```bash theme={"system"}
curl https://api.venice.ai/api/v1/image/generate \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-3-1-image",
    "prompt": "A retro travel poster with the bold headline \"VENICE\" in large condensed serif type, sunset color palette",
    "resolution": "1K",
    "aspect_ratio": "1:1"
  }'
```

### Related models

* [Flux 3 API](https://docs.venice.ai/models/flux-3-image.md): \$0.12 / image
* [MiniMax H3 Image API](https://docs.venice.ai/models/minimax-h3-image.md): \$0.04 / image
* [Qwen Image 3 API](https://docs.venice.ai/models/qwen-image-3.md): \$0.04 / image
* [Krea 2 Turbo API](https://docs.venice.ai/models/krea-2-turbo.md): \$0.04 / image
* [MAI Image 2.7 API](https://docs.venice.ai/models/mai-image-2-7.md): \$0.05 / image


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