> ## Documentation Index
> Fetch the complete documentation index at: https://kiosapi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# KiosAPI Quickstart: Make Your First API Request Now

> Send your first request to KiosAPI using the OpenAI SDK in Python or Node.js — set your base URL, add your key, and you're ready to go.

This guide walks you through sending your first request to KiosAPI using the official OpenAI SDK. KiosAPI is fully OpenAI-compatible, so you use the same library and the same method calls you already know — the only change is the base URL and API key.

<Info>
  **Prerequisites:**

  * A KiosAPI account with an API key (starts with `sk-kilo-`)
  * Python 3.8+ or Node.js 18+
</Info>

<Tabs>
  <Tab title="Python">
    <Steps>
      <Step title="Install the OpenAI SDK">
        Install the official OpenAI Python SDK using pip:

        ```bash theme={null}
        pip install openai
        ```

        <Note>
          OpenAI Python SDK version **1.25.0** or higher is required for full KiosAPI compatibility.
        </Note>
      </Step>

      <Step title="Send your first request">
        Create a client pointed at KiosAPI, then call `chat.completions.create`:

        ```python theme={null}
        from openai import OpenAI

        client = OpenAI(
            api_key="sk-kilo-xxxxxxxxxxxx",
            base_url="https://kiosapi.com/v1/",
        )

        response = client.chat.completions.create(
            model="gpt-4o-mini",
            messages=[
                {"role": "system", "content": "You are a helpful assistant."},
                {"role": "user", "content": "Hello! What can you do?"},
            ],
        )

        print(response.choices[0].message.content)
        ```
      </Step>
    </Steps>
  </Tab>

  <Tab title="Node.js">
    <Steps>
      <Step title="Install the OpenAI SDK">
        Install the official OpenAI Node.js SDK using npm:

        ```bash theme={null}
        npm install openai
        ```
      </Step>

      <Step title="Send your first request">
        Create a client pointed at KiosAPI, then call `chat.completions.create`:

        ```javascript theme={null}
        import OpenAI from "openai";

        const client = new OpenAI({
          apiKey: "sk-kilo-xxxxxxxxxxxx",
          baseURL: "https://kiosapi.com/v1/",
        });

        async function main() {
          const response = await client.chat.completions.create({
            model: "gpt-4o-mini",
            messages: [
              { role: "system", content: "You are a helpful assistant." },
              { role: "user", content: "Hello! What can you do?" },
            ],
          });

          console.log(response.choices[0].message.content);
        }

        main();
        ```
      </Step>
    </Steps>
  </Tab>
</Tabs>

## Next Steps

Now that you've sent your first request, explore these guides to go further:

<CardGroup cols={3}>
  <Card title="OpenAI SDK Guide" icon="book" href="/getting-started/openai-sdk">
    Dive deeper into SDK configuration, model selection, and supported parameters.
  </Card>

  <Card title="Concurrency" icon="bolt" href="/getting-started/concurrency">
    Handle high-throughput batch requests using async patterns.
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/chat/general">
    Explore the full chat endpoint documentation and all available options.
  </Card>
</CardGroup>
