Skip to main content
Create images from a text prompt using the native OpenAI-style API.

Basics

  • Endpoint: POST /v1/images/generations/
  • Host: https://tokensmind.ai
  • Auth: Bearer Token
  • Content-Type: application/json

Request body


Response

200 OK

Request example

Response example


Notes

  1. Transparency: When background is transparent, ensure the returned asset is PNG or WebP with an alpha channel.
  2. Model limits: DALL·E vs GPT-image differ on size and n; pick the model that matches your constraints.