Skip to main content
Method: POST
Endpoint: https://api.sciforium.com/v1/images/generations

Overview

The /v1/images/generations endpoint creates images from a text prompt and generation parameters.

Request Body Parameters

The API expects a JSON body. model and prompt are required.

Example response

The API returns a JSON object containing a timestamp and a data array.
  • created: Unix timestamp when the request was processed.
  • data: Array of image objects, each with:
    • url or b64_json: image output
    • revised_prompt: prompt rewritten by the model