Query Parameters
beta?boolean|null
Header Parameters
Idempotency-Key?|
Length
length <= 256Request 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
}
}
}