Skip to main content
Call the SDK’s image method with a model and prompt to send POST /v1/images/generations. Each generated image comes back as a url or b64_json entry in data.

Parameters

Field names are the JSON body fields in every SDK. The full schema is in the Image generations API reference.

Response

ImagesGenerationResponse:
Models that return image bytes put them in b64_json instead of url.
Last modified on November 5, 2026