AI

Generate an image

Enqueue a job to generate an image from a text prompt, or edit an existing image. The params object is model-specific — fetch its JSON Schema from GET /v1/ai/models/{model_id}. model_id is optional and falls back to this action's default model.

post/ai/generate-image

Request

  • Base URL
    https://api.rendley.com/v1
  • Auth
    API key in header Authorization

Request body

model_idstring
paramsobject

Params is model-specific: its accepted fields are defined by the model in model_id, not by this endpoint. Fetch the JSON Schema for a model from GET /v1/ai/models/{model_id} — it is generated from the runtime validator and is the source of truth. GET /v1/ai/models lists the model ids.

project_idstring
workspace_idstring

Response

OK

metaunknown

Example response

{
  "data": {
    "job_id": "d97241f2-e1e4-4651-b078-8663fc35c584"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.