diff --git a/openapi.yaml b/openapi.yaml index 835bdef..fa0149c 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11,7 +11,7 @@ info: name: MIT url: https://github.com/togethercomputer/openapi/blob/main/LICENSE servers: - - url: https://api.together.xyz/v1 + - url: https://api.together.ai/v1 security: - bearerAuth: [] paths: @@ -1018,7 +1018,7 @@ paths: summary: Fetch video metadata description: Fetch video metadata servers: - - url: https://api.together.xyz/v2 + - url: https://api.together.ai/v2 operationId: retrieveVideo x-codeSamples: - lang: Python @@ -1097,7 +1097,7 @@ paths: description: Create a video operationId: createVideo servers: - - url: https://api.together.xyz/v2 + - url: https://api.together.ai/v2 x-codeSamples: - lang: Python label: Together AI SDK (v2) @@ -1260,7 +1260,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/chat/completions" \ + curl -X POST "https://api.together.ai/v1/chat/completions" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -1400,7 +1400,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/completions" \ + curl -X POST "https://api.together.ai/v1/completions" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -1533,7 +1533,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/embeddings" \ + curl -X POST "https://api.together.ai/v1/embeddings" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -1656,7 +1656,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/models" \ + curl "https://api.together.ai/v1/models" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" operationId: models @@ -1775,7 +1775,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/models" \ + curl -X POST "https://api.together.ai/v1/models" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -1907,7 +1907,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/images/generations" \ + curl -X POST "https://api.together.ai/v1/images/generations" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -2077,7 +2077,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/files" \ + curl "https://api.together.ai/v1/files" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" responses: @@ -2147,7 +2147,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/files/ID" \ + curl "https://api.together.ai/v1/files/ID" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" parameters: @@ -2223,7 +2223,7 @@ paths: - lang: Shell label: cURL source: | - curl -X "DELETE" "https://api.together.xyz/v1/files/file-id" \ + curl -X "DELETE" "https://api.together.ai/v1/files/file-id" \ -H "Authorization: Bearer $TOGETHER_API_KEY" parameters: - name: id @@ -2301,7 +2301,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/files/file-id/content" \ + curl "https://api.together.ai/v1/files/file-id/content" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" parameters: @@ -2391,7 +2391,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/files/upload" \ + curl "https://api.together.ai/v1/files/upload" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -F "file=@/path/to/data.jsonl" \ -F "file_name=data.jsonl" \ @@ -2516,7 +2516,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/fine-tunes" \ + curl -X POST "https://api.together.ai/v1/fine-tunes" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -2730,7 +2730,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/fine-tunes" \ + curl "https://api.together.ai/v1/fine-tunes" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" responses: @@ -2878,7 +2878,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/fine-tunes/ft-id" \ + curl "https://api.together.ai/v1/fine-tunes/ft-id" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" parameters: @@ -2954,7 +2954,7 @@ paths: - lang: Shell label: cURL source: | - curl -X "DELETE" "https://api.together.xyz/v1/fine-tunes/ft-id?force=false" \ + curl -X "DELETE" "https://api.together.ai/v1/fine-tunes/ft-id?force=false" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" parameters: @@ -3051,7 +3051,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/fine-tunes/ft-id/events" \ + curl "https://api.together.ai/v1/fine-tunes/ft-id/events" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" parameters: @@ -3128,7 +3128,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/fine-tunes/ft-id/checkpoints" \ + curl "https://api.together.ai/v1/fine-tunes/ft-id/checkpoints" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" parameters: @@ -3214,7 +3214,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/finetune/download?ft_id=ft-id&checkpoint=merged" + curl "https://api.together.ai/v1/finetune/download?ft_id=ft-id&checkpoint=merged" -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" parameters: @@ -3311,7 +3311,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/fine-tunes/ft-id/cancel" \ + curl -X POST "https://api.together.ai/v1/fine-tunes/ft-id/cancel" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" parameters: @@ -3422,7 +3422,7 @@ paths: - lang: Shell label: cURL (list all) source: | - curl "https://api.together.xyz/v1/fine-tunes/models/supported" \ + curl "https://api.together.ai/v1/fine-tunes/models/supported" \ -H "Authorization: Bearer $TOGETHER_API_KEY" responses: '200': @@ -3448,7 +3448,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/fine-tunes/models/limits?model_name=meta-llama/Meta-Llama-3.1-8B-Instruct-Reference" \ + curl "https://api.together.ai/v1/fine-tunes/models/limits?model_name=meta-llama/Meta-Llama-3.1-8B-Instruct-Reference" \ -H "Authorization: Bearer $TOGETHER_API_KEY" parameters: - in: query @@ -3636,7 +3636,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/rerank" \ + curl -X POST "https://api.together.ai/v1/rerank" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -3802,7 +3802,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/audio/speech" \ + curl -X POST "https://api.together.ai/v1/audio/speech" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -4243,7 +4243,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/audio/transcriptions" \ + curl -X POST "https://api.together.ai/v1/audio/transcriptions" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -F "file=@audio.wav" \ -F "model=openai/whisper-large-v3" @@ -4371,7 +4371,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/audio/translations" \ + curl -X POST "https://api.together.ai/v1/audio/translations" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -F "file=@audio.wav" \ -F "model=openai/whisper-large-v3" \ @@ -5069,7 +5069,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/clusters/availability-zones" \ + curl "https://api.together.ai/v1/clusters/availability-zones" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" /endpoints: @@ -5138,7 +5138,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/endpoints" \ + curl "https://api.together.ai/v1/endpoints" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" operationId: listEndpoints @@ -5293,7 +5293,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/endpoints" \ + curl -X POST "https://api.together.ai/v1/endpoints" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -5391,7 +5391,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/endpoints/endpoint-id" \ + curl "https://api.together.ai/v1/endpoints/endpoint-id" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" operationId: getEndpoint @@ -5498,7 +5498,7 @@ paths: - lang: Shell label: cURL source: | - curl -X PATCH "https://api.together.xyz/v1/endpoints/endpoint-id" \ + curl -X PATCH "https://api.together.ai/v1/endpoints/endpoint-id" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -5626,7 +5626,7 @@ paths: - lang: Shell label: cURL source: | - curl -X "DELETE" "https://api.together.xyz/v1/endpoints/endpoint-id" \ + curl -X "DELETE" "https://api.together.ai/v1/endpoints/endpoint-id" \ -H "Authorization: Bearer $TOGETHER_API_KEY" operationId: deleteEndpoint parameters: @@ -5722,7 +5722,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/hardware" \ + curl "https://api.together.ai/v1/hardware" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" operationId: listHardware @@ -5841,7 +5841,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/tci/execute" \ + curl -X POST "https://api.together.ai/v1/tci/execute" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -5921,7 +5921,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/tci/sessions" \ + curl "https://api.together.ai/v1/tci/sessions" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" operationId: sessions/list @@ -5995,7 +5995,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/batches" \ + curl "https://api.together.ai/v1/batches" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" security: @@ -6086,7 +6086,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/batches" \ + curl -X POST "https://api.together.ai/v1/batches" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ @@ -6193,7 +6193,7 @@ paths: - lang: Shell label: cURL source: | - curl "https://api.together.xyz/v1/batches/ID" \ + curl "https://api.together.ai/v1/batches/ID" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" security: @@ -6303,7 +6303,7 @@ paths: - lang: Shell label: cURL source: | - curl -X POST "https://api.together.xyz/v1/batches/ID/cancel" \ + curl -X POST "https://api.together.ai/v1/batches/ID/cancel" \ -H "Authorization: Bearer $TOGETHER_API_KEY" \ -H "Content-Type: application/json" security: