Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

Claude 메시지 생성

서버:https://openapi.felo.ai
클라이언트 라이브러리

Claude 메시지 생성

​

Claude Messages API 호환 엔드포인트입니다. stream=true로 설정하면 Claude 스타일 메시지 스트림 이벤트를 받습니다. 요청, 응답, 검증 오류 필드는 Claude Messages 프로토콜을 따르며, Router는 인프라 장애 시 정제된 게이트웨이 오류 봉투를 반환할 수도 있습니다.

헤더
  • X-Felo-Channel
    유형: string

    공개 채널 코드를 쉼표로 구분한 순서 있는 목록입니다. 이 헤더를 생략하면 default를 사용하며, default는 단독으로만 사용해야 합니다. 지갑 모드에서 default는 모델의 유효 공개 채널 순서를 역순으로 스캔하고, 게시되지 않았거나 사용할 수 없는 채널을 건너뛰며, 사용 가능한 첫 번째 채널의 공급자를 선택합니다. 동일한 업스트림 모델 ID와 서비스 티어를 가진 해당 공급자의 사용 가능한 엔드포인트도 포함합니다. 명시적 채널은 클라이언트가 지정한 순서로 검증되며, 첫 번째 채널의 공급자 그룹만 제출됩니다. 다른 공급자로의 자동 fallback은 없습니다. 레거시 공급자 헤더로는 채널 라우팅을 재정의할 수 없습니다.

본문·ClaudeMessagesRequest
필수
application/json
  • max_tokens
    유형: integer
    최솟값:  
    1
    필수

    Integer numbers.

  • messages
    유형: array object[] · ClaudeMessage[] 1…
    필수

    Use a document block for a PDF or an image block for a picture. Set source to {type: 'file', file_id: 'felo_file_...'} for an uploaded Felo attachment, {type: 'url', url: 'https://...'} for an HTTPS URL, or provide type, media_type and data for a base64 source. PDF and image URL support are enabled per model.

    • content
      필수
      • 유형: string
    • role
      유형: string 열거형
      필수
      값
      • user
      • assistant
    • propertyName
      유형: anything
  • model
    유형: string
    필수
  • metadata
    유형: object
    • propertyName
      유형: anything
  • service_tier
    유형: string | null

    현재는 default(표준)만 지원합니다. 생략, null, 별칭 및 지원되지 않는 문자열은 default로 대체되며, 다른 유형은 HTTP 400을 반환합니다. 구성된 채널과 가격은 변경되지 않습니다. 텍스트 API는 공급자의 표준 값을 전송하고, Decisions 및 생성 API는 업스트림 필드를 생략합니다.

  • stop_sequences
    유형: array string[]
  • stream
    유형: boolean
  • system
    • 유형: string
  • temperature
    유형: number
    최솟값:  
    0
    최댓값:  
    1
  • thinking
    유형: object
    • propertyName
      유형: anything
  • tool_choice
    • 유형: string
  • tools
    유형: array object[]
    • propertyName
      유형: anything
  • propertyName
    유형: anything
  • top_k
    유형: integer
    최솟값:  
    0

    Integer numbers.

  • top_p
    유형: number
    최솟값:  
    0
    최댓값:  
    1
  • propertyName
    유형: anything
응답
  • 200
    유형: object · ClaudeMessageResponse

    Claude 메시지 또는 스트리밍 응답

    • content
      유형: array object[] · ClaudeContentBlock[]
      필수
      • type
        유형: string 열거형
        필수
        값
        • text
        • image
        • document
        • tool_use
        • tool_result
        • thinking
      • content
        유형: string | array
      • id
        유형: string
      • input
        유형: object
        • propertyName
          유형: anything
      • name
        유형: string
      • source
        유형: object
        • propertyName
          유형: anything
      • text
        유형: string
      • propertyName
        유형: anything
    • id
      유형: string
      필수
    • model
      유형: string
      필수
    • role
      상수:  
      assistant
      필수
    • stop_reason
      유형: string | null
      필수
    • type
      상수:  
      message
      필수
    • stop_sequence
      유형: string | null
    • usage
      유형: object · Usage

      공급자 사용량 객체입니다. 필드는 엔드포인트와 공급자에 따라 다릅니다.

      • propertyName
        유형: anything
    • propertyName
      유형: anything
  • 400
    유형: object · ClaudeErrorResponse

    Claude invalid_request_error 또는 Router 요청 검증 오류

    Messages 요청에 대한 Claude Errors API 호환 오류 봉투입니다.

    • error
      유형: object
      필수
      • message
        유형: string
        필수
      • type
        유형: string
        필수
      • propertyName
        유형: anything
    • type
      상수:  
      error
      필수
    • request_id
      유형: string
    • propertyName
      유형: anything
    application/json
  • 401
    유형: object · ClaudeErrorResponse

    Felo API 키가 유효하지 않거나 누락되었습니다

    Messages 요청에 대한 Claude Errors API 호환 오류 봉투입니다.

    • error
      유형: object
      필수
      • message
        유형: string
        필수
      • type
        유형: string
        필수
      • propertyName
        유형: anything
    • type
      상수:  
      error
      필수
    • request_id
      유형: string
    • propertyName
      유형: anything
    application/json
  • 402
    유형: object · ClaudeErrorResponse

    잔액 부족

    Messages 요청에 대한 Claude Errors API 호환 오류 봉투입니다.

    • error
      유형: object
      필수
      • message
        유형: string
        필수
      • type
        유형: string
        필수
      • propertyName
        유형: anything
    • type
      상수:  
      error
      필수
    • request_id
      유형: string
    • propertyName
      유형: anything
    application/json
  • 403
    유형: object · ClaudeErrorResponse

    계정에 이 모델을 사용할 권한이 없습니다. 비활성화된 모델은 업스트림 호출 전에 거부됩니다. 이미 접수된 요청과 작업은 계속 진행됩니다.

    Messages 요청에 대한 Claude Errors API 호환 오류 봉투입니다.

    • error
      유형: object
      필수
      • message
        유형: string
        필수
      • type
        유형: string
        필수
      • propertyName
        유형: anything
    • type
      상수:  
      error
      필수
    • request_id
      유형: string
    • propertyName
      유형: anything
    application/json
  • 429
    유형: object · ClaudeErrorResponse

    지출 또는 요청 한도에 도달했습니다

    Messages 요청에 대한 Claude Errors API 호환 오류 봉투입니다.

    • error
      유형: object
      필수
      • message
        유형: string
        필수
      • type
        유형: string
        필수
      • propertyName
        유형: anything
    • type
      상수:  
      error
      필수
    • request_id
      유형: string
    • propertyName
      유형: anything
    application/json
  • 502
    유형: object · ClaudeErrorResponse

    업스트림 공급자 요청 실패

    Messages 요청에 대한 Claude Errors API 호환 오류 봉투입니다.

    • error
      유형: object
      필수
      • message
        유형: string
        필수
      • type
        유형: string
        필수
      • propertyName
        유형: anything
    • type
      상수:  
      error
      필수
    • request_id
      유형: string
    • propertyName
      유형: anything
    application/json
  • 503
    유형: object · ClaudeErrorResponse

    공급자 또는 청구 서비스를 사용할 수 없습니다

    Messages 요청에 대한 Claude Errors API 호환 오류 봉투입니다.

    • error
      유형: object
      필수
      • message
        유형: string
        필수
      • type
        유형: string
        필수
      • propertyName
        유형: anything
    • type
      상수:  
      error
      필수
    • request_id
      유형: string
    • propertyName
      유형: anything
    application/json
Request Example for post/api/v1/messages
curl https://openapi.felo.ai/api/v1/messages \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "model": "claude-sonnet-4-5",
  "max_tokens": 256,
  "messages": [
    {
      "role": "user",
      "content": "Write a one-sentence greeting."
    }
  ],
  "stream": false
}'
{
  "id": "string",
  "type": "message",
  "role": "assistant",
  "content": [
    {
      "type": "text",
      "text": "string",
      "id": "string",
      "name": "string",
      "input": {
        "additionalProperty": "anything"
      },
      "content": "string",
      "source": {
        "additionalProperty": "anything"
      },
      "additionalProperty": "anything"
    }
  ],
  "model": "string",
  "stop_reason": null,
  "stop_sequence": null,
  "usage": {
    "additionalProperty": "anything"
  },
  "additionalProperty": "anything"
}
Create a Claude message

도움이 필요하신가요?

  • API, 결제, 계정 관련 문의는 지원에서 안내해 드립니다.
  • Discord에서 Felo 개발자와 대화해 보세요.
  • 변경 내역을 확인해 보세요.
  • 대량 구매 가격이나 구매 관련 도움이 필요하신가요? 영업팀 문의.
  • LLM으로 구축 중이신가요? llms.txt를 읽어 보세요.