POST
/
generate
curl --request POST \
  --url https://sdk.senso.ai/api/v1/generate \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "content_type": "<string>",
  "instructions": "<string>",
  "save": false,
  "max_results": 123,
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "content_type": "<string>",
  "instructions": "<string>",
  "generated_text": "<string>",
  "content_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sources": [
    {
      "content_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "chunk_index": 123,
      "chunk_text": "<string>",
      "score": 123,
      "title": "<string>",
      "vector_id": "<string>"
    }
  ],
  "processing_time_ms": 123
}

Authorizations

X-API-Key
string
header
required

API key authorization

Body

application/json

Response

200
application/json
Content successfully generated

The response is of type object.