Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Cloudsomeが提供するOpenAI互換エンドポイントを使い始めましょう。
curl https://api.cloudsome-inc.ai/v1/chat/completions \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{ "model": "YOUR_MODEL_ID", "messages": [{"role": "user", "content": "Hello!"}] }'
from openai import OpenAI client = OpenAI( base_url="https://api.cloudsome-inc.ai/v1", api_key="sk_live_...", ) response = client.chat.completions.create( model="claude-sonnet-4-6", messages=[{"role": "user", "content": "Hello!"}], stream=True, ) for chunk in response: for choice in chunk.choices: if choice.delta.content: print(choice.delta.content, end="")
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.cloudsome-inc.ai/v1", apiKey: "sk_live_...", }); const response = await client.chat.completions.create({ model: "YOUR_MODEL_ID", messages: [{ role: "user", content: "Hello!" }], }); console.log(response.choices[0].message.content);