302.AIはAPIを簡素化しました。outputを得るには、modelとmessageを渡すだけで十分です。 Request
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
{
"model": "gpt-3.5-turbo",
"message":"hello"
}
Request samples
curl --location --request POST 'https://api.302.ai/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-3.5-turbo",
"message":"hello"
}'
Responses
application/json Modified at 2025-03-20 02:19:42