# AI: image generation status

> Eto API reference for `GET /api/v1/ai/generate-image/status`. Base URL `https://eto.tools/api/v1/`. Authenticate with the `X-Eto-API-Key` header.

Part of the [Eto API reference](https://eto.tools/dev/docs/). The full reference in one file is at [llms-full.txt](https://eto.tools/dev/docs/llms-full.txt); the machine-readable schema is at [openapi.json](https://eto.tools/dev/docs/openapi.json).

## GET /api/v1/ai/generate-image/status

AI: image generation status

- Operation ID: `ai_generate_image_status`
- Slug: `ai-generate-image-status`
- Category: AI Studio
- Authentication: API key only. Reads or writes data Eto holds for your own account.
- HTML: https://eto.tools/dev/docs/#ep-ai-generate-image-status
- Markdown: https://eto.tools/dev/docs/ai-studio/ai-generate-image-status.md

Poll the status/result of an AI image generation job.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `job_id` | query | `string` | yes | Job id returned by ai_generate_image |

### Request

```bash
curl -X GET "https://eto.tools/api/v1/ai/generate-image/status?job_id=job_9f2c41d8" \
  -H "X-Eto-API-Key: eto_your_key"
```

```python
import requests

url = "https://eto.tools/api/v1/ai/generate-image/status"
headers = {"X-Eto-API-Key": "eto_your_key"}
params = {
    "job_id": "job_9f2c41d8"
}

response = requests.get(url, headers=headers, params=params, timeout=120)
response.raise_for_status()
print(response.json())
```

```javascript
const url = "https://eto.tools/api/v1/ai/generate-image/status?job_id=job_9f2c41d8";

const response = await fetch(url, {
  method: "GET",
  headers: {
    "X-Eto-API-Key": "eto_your_key",
  },
});
if (!response.ok) throw new Error(`Eto API ${response.status}`);
const data = await response.json();
```

### Response

`application/json`. This endpoint has no worked response example in the registry yet; the [HTML reference](https://eto.tools/dev/docs/#ep-ai-generate-image-status) shows the fields it returns.

### Errors

Failures answer with the shared error body described in the Errors section: `{"error": {"code", "status", "message", "hint", "docs"}}`. Branch on `code`, not on the message.
