POST
/v1/chat/completions

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

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