POST
/
generate
curl --location --request POST 'https://api.mixpeek.com/generate' \
--header 'Authorization: Bearer API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "response_format": {
    "type": "object",
    "properties": {
      "city": {
        "title": "City",
        "type": "string"
      },
      "neighborhood": {
        "title": "Neighborhood",
        "type": "string"
      },
      "weather": {
        "title": "Weather",
        "type": "number"
      }
    },
    "required": ["city", "neighborhood", "weather"]
  },
  "context": "Please tell me the weather and make sure to respond in the provided JSON schema",
}'

Due to the expensive nature of generation, it is available to Enterprise customers only. To schedule a demo reach out

The generate method allows you to produce content across various modalities. Depending on the modality, different techniques can be applied:

  • image: generative adversarial networks, style transfer, etc.
  • audio: speech synthesis, music generation, etc.
  • video: video synthesis, animation, etc.
  • text: language modeling, text completion, etc.

Request

response_format
json
required

The JSON schema for the response format

context
string
required

The prompt or input to generate content from

messages
json

Additional context messages

settings
json

Additional settings for the generation process