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

# Image models

> Image generation models and API reference, compatible with the OpenAI images/generations format.

## Available models

<Card title="View the latest models in the dashboard" icon="bolt" href="https://app.chatgpttech.mobi/models">
  Open model page
</Card>

| Model       | Model ID | Supported sizes | Price |
| ----------- | -------- | --------------- | ----- |
| Coming soon | —        | —               | —     |

<Info>
  Image generation models are currently being onboarded. If you'd like early access, reach out to us through the dashboard.
</Info>

***

## API reference

Image generation uses the OpenAI `images/generations` format.

<CodeGroup>
  ```bash cURL theme={null}
  curl https://oss.chatgpttech.mobi/v1/images/generations \
    -H "Authorization: Bearer sk-hub-your-key-here" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "model-id",
      "prompt": "A futuristic city at sunset, photorealistic",
      "n": 1,
      "size": "1024x1024"
    }'
  ```

  ```typescript Node.js theme={null}
  import OpenAI from 'openai';

  const client = new OpenAI({
    apiKey: 'sk-hub-your-key-here',
    baseURL: 'https://oss.chatgpttech.mobi/v1',
  });

  const response = await client.images.generate({
    model: 'model-id',
    prompt: 'A futuristic city at sunset, photorealistic',
    n: 1,
    size: '1024x1024',
  });

  console.log(response.data[0].url);
  ```

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

  client = OpenAI(
      api_key="sk-hub-your-key-here",
      base_url="https://oss.chatgpttech.mobi/v1",
  )

  response = client.images.generate(
      model="model-id",
      prompt="A futuristic city at sunset, photorealistic",
      n=1,
      size="1024x1024",
  )

  print(response.data[0].url)
  ```
</CodeGroup>

***

## Related

<CardGroup cols={3}>
  <Card title="Quickstart" icon="rocket" href="/api-guide/quickstart" />

  <Card title="API keys" icon="key" href="/api-guide/api-keys" />

  <Card title="Video models" icon="video" href="/api-guide/video-models" />
</CardGroup>
