OpenAI API
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
「[[.NET 開発基盤部会 Wiki>http://dotnetdevelopmentinfras...
-[[戻る>テキスト生成系(Transformer系)]] > [[開発系>テキ...
--[[OpenAI]]
---[[ChatGPT]]
---OpenAI API
---[[Library>OpenAI#w24acc85]]
--[[Azure OpenAI>https://techinfoofmicrosofttech.osscons....
--[[OSSのLLM]]
--[[LLM系ツール]]
*目次 [#o82d3647]
#contents
*概要 [#w2f67522]
大規模言語モデルを利用できる(Web)APIサービス
*詳細 [#va33a5cb]
**準備 [#w2280b16]
ログインして、Billing から課金して、WebAPIキーを取得[[&...
**実行 [#ra914dbd]
***curl [#q016ccab]
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 abo...
}'
***python [#t825a87f]
from openai import OpenAI
client = OpenAI()
response = client.responses.create(
model="gpt-4.1",
input="Tell me a three sentence bedtime story about a ...
)
print(response)
*参考 [#b15c0026]
-https://platform.openai.com
--Playground~
https://platform.openai.com/playground/chat
--Dashboard~
https://platform.openai.com/chat-completions
--Docs~
https://platform.openai.com/docs/overview
--API reference~
https://platform.openai.com/docs/api-reference/introduction
--Settings
---Billing overview - OpenAI API~
https://platform.openai.com/settings/organization/billing...
-OpenAIのAPIキー取得方法|2024年7月最新版|料金体系や注意事...
https://qiita.com/kurata04/items/a10bdc44cc0d1e62dad3
終了行:
「[[.NET 開発基盤部会 Wiki>http://dotnetdevelopmentinfras...
-[[戻る>テキスト生成系(Transformer系)]] > [[開発系>テキ...
--[[OpenAI]]
---[[ChatGPT]]
---OpenAI API
---[[Library>OpenAI#w24acc85]]
--[[Azure OpenAI>https://techinfoofmicrosofttech.osscons....
--[[OSSのLLM]]
--[[LLM系ツール]]
*目次 [#o82d3647]
#contents
*概要 [#w2f67522]
大規模言語モデルを利用できる(Web)APIサービス
*詳細 [#va33a5cb]
**準備 [#w2280b16]
ログインして、Billing から課金して、WebAPIキーを取得[[&...
**実行 [#ra914dbd]
***curl [#q016ccab]
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 abo...
}'
***python [#t825a87f]
from openai import OpenAI
client = OpenAI()
response = client.responses.create(
model="gpt-4.1",
input="Tell me a three sentence bedtime story about a ...
)
print(response)
*参考 [#b15c0026]
-https://platform.openai.com
--Playground~
https://platform.openai.com/playground/chat
--Dashboard~
https://platform.openai.com/chat-completions
--Docs~
https://platform.openai.com/docs/overview
--API reference~
https://platform.openai.com/docs/api-reference/introduction
--Settings
---Billing overview - OpenAI API~
https://platform.openai.com/settings/organization/billing...
-OpenAIのAPIキー取得方法|2024年7月最新版|料金体系や注意事...
https://qiita.com/kurata04/items/a10bdc44cc0d1e62dad3
ページ名: