Skip to main content
POST /v1/images/generations creates images through an OpenAI-compatible request shape.

Endpoint URL

Example Request

BYOK

To use your own provider key, keep the Planck API key in Authorization and send the provider key separately:

Notes

  • Image generation is usage-bearing and should flow through gateway billing and logging.
  • Supported models depend on the model registry and provider availability.
See Image Generation for the recommended SDK example.
This endpoint uses the shared AI Gateway error envelope. See the Error Handling & Fallback guide for response examples, retry rules, fallback behavior, and streaming errors.