Source: https://aiprimetech.io/ko/docs/sdks/curl/ [홈](/ko/) / [문서](/ko/docs/) / cURL # cURL 모든 엔드포인트에 대한 의존성 없는 예제 — 디버깅과 CI 검사에 유용합니다. 페이지 복사 [ Markdown으로 보기](/ko/docs/sdks/curl.md) [ ChatGPT에 질문](https://chatgpt.com/?q=Read%20https%3A//aiprimetech.io/docs/sdks/curl.md%20and%20answer%20questions%20about%20it.%20Start%20with%20a%20short%20summary.) [ Claude에서 질문](https://claude.ai/new?q=Read%20https%3A//aiprimetech.io/docs/sdks/curl.md%20and%20answer%20questions%20about%20it.%20Start%20with%20a%20short%20summary.) ## 모델 목록 조회 ``` Copycurl https://aiprimetech.io/v1/models \ -H "Authorization: Bearer $CLAUDEAPIKEY" ``` ## 메시지 ``` Copycurl https://aiprimetech.io/v1/messages \ -H "x-api-key: $CLAUDEAPIKEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "claude-sonnet-4-6", "max_tokens": 1024, "system": "Be concise.", "messages": [{"role": "user", "content": "What is a CDN?"}] }' ``` ## Chat Completions ``` Copycurl https://aiprimetech.io/v1/chat/completions \ -H "Authorization: Bearer $CLAUDEAPIKEY" \ -H "content-type: application/json" \ -d '{ "model": "claude-sonnet-4-6", "messages": [ {"role": "system", "content": "Be concise."}, {"role": "user", "content": "What is a CDN?"} ] }' ``` ## 스트리밍 ``` Copycurl -N https://aiprimetech.io/v1/messages \ -H "x-api-key: $CLAUDEAPIKEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{"model":"claude-sonnet-4-6","max_tokens":512,"stream":true, "messages":[{"role":"user","content":"Count to five"}]}' ``` -N curl 자체의 버퍼링을 비활성화합니다. 이 설정이 없으면 전체 스트림이 한꺼번에 표시되어 스트리밍이 작동하지 않는 것처럼 보입니다. ## CI 상태 확인 ``` Copy"c">#!/usr/bin/env bash set -euo pipefail code=$(curl -s -o /dev/null -w "%{http_code}" https://aiprimetech.io/v1/models \ -H "Authorization: Bearer $CLAUDEAPIKEY") [ "$code" = "200" ] || { echo "gateway check failed: $code" >&2; exit 1; } echo "gateway ok" ``` [오류상태 해석](/ko/docs/api-reference/errors/)[문제 해결curl은 작동하지만 SDK는 작동하지 않을 때](/ko/docs/guides/troubleshooting/) [이전TypeScript](/ko/docs/sdks/typescript/)[다음Go](/ko/docs/sdks/go/)