documents

Generate a document

Generate a professional document, essay or report from a prompt.

post/documents/generations

Request

  • Base URL
    https://api.krater.ai/v1
  • Auth
    HTTP bearer

Request body

promptstring required

What the document should contain.

formatstring

Output format.

modelstring

Model identifier.

Example request

{
  "format": "markdown",
  "model": "openai/gpt-4o"
}

Response

Generated document in an OpenAI chat-completion shape.

idstring required
object'chat.completion' required
createdinteger

Unix timestamp.

modelstring

Example response

{
  "id": "chatcmpl-abc123",
  "choices": [
    {
      "finish_reason": "stop"
    }
  ]
}

Changes

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