POST
/v1/messages

Query Parameters

beta?boolean|null

Header Parameters

Idempotency-Key?|
Lengthlength <= 256

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.sference.com/v1/messages" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "max_tokens": 0,    "messages": [      {        "role": "user",        "content": "string"      }    ]  }'
{
  "property1": null,
  "property2": null
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "type": "error",
  "error": {
    "type": "string",
    "message": "string",
    "extra": {
      "property1": null,
      "property2": null
    }
  }
}