-
Notifications
You must be signed in to change notification settings - Fork 0
DNET_OpenAIAPI
nishi_74322014 edited this page Sep 11, 2026
·
1 revision
-
戻る > 開発系(テキスト生成系(Transformer系)の該当節を参照)
-
OpenAI
- OpenAI API
- Library(OpenAIの該当節を参照)
- Agents SDK
- Azure OpenAI
- OSSのLLM
- LLM系ツール
-
OpenAI
大規模言語モデルを利用できる(Web)APIサービス
ログインして「Billing」から課金して、WebAPIキーを取得&設定 (WSL2 Ubuntu 24.04 LTS 2025/1/21の該当節を参照)するだけで良い。
curl https://api.openai.com/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-4.1",
"input": "Tell me a three sentence bedtime story about a unicorn."
}'
from openai import OpenAI
client = OpenAI()
response = client.responses.create(
model="gpt-4.1",
input="Tell me a three sentence bedtime story about a unicorn."
)
print(response)-
-
Playground
https://platform.openai.com/playground/chat -
API reference
https://platform.openai.com/docs/api-reference/introduction -
Settings
- Billing overview - OpenAI API
https://platform.openai.com/settings/organization/billing/overview
- Billing overview - OpenAI API
-
-
OpenAIのAPIキー取得方法|2024年7月最新版|料金体系や注意事項 #DALLE - Qiita
https://qiita.com/kurata04/items/a10bdc44cc0d1e62dad3
移行メモ
- マイクロソフト系技術情報 Wiki(techinfoofmicrosofttech.osscons.jp)への URL リンクは、移行済みの Azure OpenAI に張り替えた。
- PukiWiki のページ内アンカ(
#xxxxxxxx)は GitHub Wiki では再現できないため、 同一ページ内のアンカは見出しから生成されるアンカに張り替え、 他ページのアンカを指すリンクは「〜(ページ名の該当節を参照)」の形に置き換えた。
Tags: 移行, OpenAI API, LLM, WebAPI, curl, Python, 大規模言語モデル
このWikiは「Open棟梁Project」,「OSSコンソーシアム 開発基盤部会」によって運営されています。