Poems

Create Poem

This endpoint is compatible with the OpenAI library.<br/>Creates a poem given a prompt.

post/v1/poems/generations

Request

  • Base URL: https://api.fanar.qa (the document declares no server; this is the origin it was published from)
  • URL: https://api.fanar.qa/v1/poems/generations
  • Auth: HTTP bearer

Request body

model'Fanar-Diwan' required
promptstring required

A text description of the desired poem.

Example request

{
  "model": "Fanar-Diwan",
  "prompt": "Write a poem about the sea"
}

Response

Successful Response

idstring required

A unique identifier for the poem generation.

poemstring required

The generated poem.

Changes

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