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

# curl の例

> curl で Rock API を呼び出します。

# curl の例

```bash theme={null}
curl https://rockapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $ROCK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]}'
```

<Card title="API キーを取得" icon="key" href="https://rockapi.ai/keys">
  この例を実行する前に、登録して[API キー](https://rockapi.ai/keys)を作成してください。
</Card>
