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

# Image Generation

> Generate images from text prompts using AI models.

## Request

```bash theme={null}
POST https://api.euron.one/api/v1/euri/images/generations
```

### Body parameters

<ParamField body="model" type="string" required>
  Image model ID. Currently available: `gemini-3-pro-image-preview`.
</ParamField>

<ParamField body="prompt" type="string" required>
  Text description of the image to generate.
</ParamField>

<ParamField body="n" type="integer">
  Number of images to generate. Default: `1`.
</ParamField>

<ParamField body="size" type="string">
  Image dimensions. Options: `"1024x1024"`, `"512x512"`, etc.
</ParamField>

<ParamField body="quality" type="string">
  Image quality. Options: `"standard"`, `"hd"`.
</ParamField>

<ParamField body="response_format" type="string">
  Format of the response. Options: `"url"`, `"b64_json"`.
</ParamField>

***

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.euron.one/api/v1/euri/images/generations \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_EURI_API_KEY" \
    -d '{
      "model": "gemini-3-pro-image-preview",
      "prompt": "A futuristic city skyline at sunset, digital art style",
      "n": 1,
      "size": "1024x1024"
    }'
  ```

  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_EURI_API_KEY",
      base_url="https://api.euron.one/api/v1/euri"
  )

  response = client.images.generate(
      model="gemini-3-pro-image-preview",
      prompt="A futuristic city skyline at sunset, digital art style",
      n=1,
      size="1024x1024"
  )

  print(response.data[0].url)
  ```

  ```javascript JavaScript theme={null}
  import OpenAI from 'openai';

  const client = new OpenAI({
    apiKey: 'YOUR_EURI_API_KEY',
    baseURL: 'https://api.euron.one/api/v1/euri',
  });

  const response = await client.images.generate({
    model: 'gemini-3-pro-image-preview',
    prompt: 'A futuristic city skyline at sunset, digital art style',
    n: 1,
    size: '1024x1024',
  });

  console.log(response.data[0].url);
  ```
</CodeGroup>

***

## Response

```json theme={null}
{
  "created": 1744998577,
  "data": [
    {
      "url": "https://...",
      "revised_prompt": "A futuristic city skyline..."
    }
  ]
}
```

## Pricing

`gemini-3-pro-image-preview`: **\$0.04 per image** (+ 15% markup).
