HTTP

HTTP Integration

QuickSilver supports direct HTTP integration using curl or any HTTP client. This is ideal for low-level, language-agnostic setups and backend workflows.

Usage with curl

curl -X POST "https://api-quicksilver.iotex.ai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-api-key" \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [
      { "role": "system", "content": "You are a helpful assistant." },
      { "role": "user", "content": "Tell me about OpenAPI schemas." }
    ],
    "temperature": 0.7
  }'

Request Format

  • Method: POST

  • URL: https://api-quicksilver.iotex.ai/v1/chat/completions

Headers:

  • Content-Type: application/json

  • Authorization: Bearer your-api-key

Request Body:

{
  "model": "gpt-3.5-turbo",
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "Your question here"
    }
  ],
  "temperature": 0.7
}

Tips

  • Works with any HTTP client or programming language

  • Fully compatible with OpenAI’s chat/completions API format

  • Ideal for custom backend integrations or lightweight use cases

  • Always include proper Authorization headers

  • Do not expose your API key in client-side code or public repositories

Last updated