Skip to main content

Inference

POST 

/ai/generate

Generate text using an available LLM (Large Language Model).

Request

Body

required

    text string[]required
    model object

    Provide a namespace to our supported models.

    bucket Bucket
    openai_api_key Openai Api Key
    max_tokens Max Tokens

    Default value: 128

    temperature Temperature

    Default value: 0.9

Responses

200: Successful Response

Schema

    data

    object

    required

    answer string[]required

422: Validation Error

Schema

    detail

    object[]

  • Array [

  • loc

    object[]

    required

  • Array [

  • anyOf

    string

  • ]

  • msg Messagerequired
    type Error Typerequired
  • ]

Loading...