### GET /v0/models Source: https://documenter.getpostman.com/view/5900072/2s9YyzddrR Retrieves a list of all available AI models supported by the Straico platform. ```APIDOC ## GET /v0/models ### Description Fetches a list of all available AI models. Each entry provides the model's display name, unique identifier, pricing per 100 words, and the maximum output token limit. ### Method GET ### Endpoint https://api.straico.com/v0/models ### Parameters #### Path Parameters - None #### Query Parameters - None #### Request Body - None ### Request Example ```bash curl --location 'https://api.straico.com/v0/models' \ --header 'Authorization: Bearer $STRAICO_API_KEY' ``` ### Response #### Success Response (200) - **data** (array) - A list of model objects. - **name** (string) - Model display name. - **model** (string) - Unique model identifier for API usage. - **pricing** (object) - Pricing information (coins per 100 words). - **max_output** (number) - Maximum tokens allowed in a single response. #### Response Example ```json { "data": [ { "name": "Anthropic: Claude 3 Haiku", "model": "anthropic/claude-3-haiku:beta", "pricing": { "coins": 1, "words": 100 }, "max_output": 4096 } ] } ``` ``` -------------------------------- ### GET /models Source: https://documenter.getpostman.com/view/5900072/2s9YyzddrR Retrieves a comprehensive list of available AI models with their associated pricing and technical specifications. ```APIDOC ## GET /models ### Description Fetch the list of all supported AI models, including their model identifiers, pricing per 100 words, and maximum output token limits. ### Method GET ### Endpoint /models ### Parameters None ### Request Example GET /models ### Response #### Success Response (200) - **models** (array) - A list of model objects containing name, model ID, pricing, and max_output. #### Response Example { "models": [ { "name": "OpenAI: GPT-4o mini", "model": "openai/gpt-4o-mini", "pricing": { "coins": 0.4, "words": 100 }, "max_output": 16384 } ], "success": true } ``` -------------------------------- ### GET /v0/user Source: https://documenter.getpostman.com/view/5900072/2s9YyzddrR Fetches details of the authenticated user, including first name, last name, coin balance, and subscription plan. ```APIDOC ## GET /v0/user ### Description This endpoint allows users to fetch details of a specific user from the Straico platform. Users can access information such as the user's first name, last name, the number of coins associated with the account, and the plan they are subscribed to. ### Method GET ### Endpoint https://api.straico.com/v0/user ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body This endpoint does not require a request body. ### Request Example ```bash curl --location 'https://api.straico.com/v0/user' \ --header 'Authorization: Bearer $STRAICO_API_KEY' ``` ### Response #### Success Response (200) - **data** (object) - Contains user information. - **first_name** (string) - The user's first name. - **last_name** (string) - The user's last name. - **coins** (number) - The number of coins associated with the account. - **plan** (string) - The current subscription plan of the user. - **success** (boolean) - Indicates if the request was successful. #### Response Example ```json { "data": { "first_name": "Jane", "last_name": "Doe", "coins": 562621.19, "plan": "Ultimate Pack" }, "success": true } ``` ``` -------------------------------- ### GET /v0/models Source: https://documenter.getpostman.com/view/5900072/2s9YyzddrR Retrieves a list of available language models and their associated details within the Straico API. ```APIDOC ## GET /v0/models ### Description This endpoint provides users with a comprehensive list of available language models and their associated details within the Straico API ecosystem. By querying this endpoint, users can access up-to-date information about various models and their associated pricing. ### Method GET ### Endpoint https://api.straico.com/v0/models ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body This endpoint does not require a request body. ### Request Example ```bash curl --location 'https://api.straico.com/v0/models' \ --header 'Authorization: Bearer $STRAICO_API_KEY' ``` ### Response #### Success Response (200) *The response structure for this endpoint is not detailed in the provided text.* #### Response Example *No example response provided in the source text.* ``` -------------------------------- ### Example API Response: Models Information (JSON) Source: https://documenter.getpostman.com/view/5900072/2s9YyzddrR This JSON object represents the successful response from the Straico API's /models endpoint. It contains a 'data' array, where each element is an object detailing a specific AI model's name, identifier, pricing, and maximum output. ```json { "data": [ { "name": "Anthropic: Claude 3 Haiku", "model": "anthropic/claude-3-haiku:beta", "pricing": { "coins": 1, "words": 100 }, "max_output": 4096 }, { "name": "Anthropic: Claude 3 Opus", "model": "anthropic/claude-3-opus", "pricing": { "coins": 24, "words": 100 }, "max_output": 4096 }, { "name": "Anthropic: Claude 3 Sonnet", "model": "anthropic/claude-3-sonnet", "pricing": { "coins": 5, "words": 100 }, "max_output": 4096 }, { "name": "Anthropic: Claude 3.5 Sonnet", "model": "anthropic/claude-3.5-sonnet", "pricing": { "coins": 5, "words": 100 }, "max_output": 8192 }, { "name": "Cohere: Command R (08-2024)", "model": "cohere/command-r-08-2024", "pricing": { "coins": 0.2, "words": 100 }, "max_output": 4000 }, { "name": "Cohere: Command R+ (08-2024)", "model": "cohere/command-r-plus-08-2024", "pricing": { "coins": 3.4, "words": 100 }, "max_output": 4000 }, { "name": "Dolphin 2.6 Mixtral 8x7B", "model": "cognitivecomputations/dolphin-mixtral-8x7b", "pricing": { "coins": 1, "words": 100 }, "max_output": 32768 }, { "name": "Goliath 120B", "model": "alpindale/goliath-120b", "pricing": { "coins": 5, "words": 100 }, "max_output": 400 }, { "name": "Google: Gemini Pro 1.5", "model": "google/gemini-pro-1.5", "pricing": { "coins": 3.7, "words": 100 }, "max_output": 8192 }, { "name": "Google: Gemma 2 27B", "model": "google/gemma-2-27b-it", "pricing": { "coins": 0.4, "words": 100 }, "max_output": 8192 }, { "name": "Gryphe: MythoMax L2 13B 8k", "model": "gryphe/mythomax-l2-13b", "pricing": { "coins": 1, "words": 100 }, "max_output": 4096 }, { "name": "Meta: Llama 3 70B Instruct (nitro)", "model": "meta-llama/llama-3-70b-instruct:nitro", "pricing": { "coins": 1, "words": 100 }, "max_output": 8192 }, { "name": "Meta: Llama 3 8B Instruct", "model": "meta-llama/llama-3-8b-instruct", "pricing": { "coins": 0.5, "words": 100 }, "max_output": 8192 }, { "name": "Meta: Llama 3.1 405B Instruct", "model": "meta-llama/llama-3.1-405b-instruct", "pricing": { "coins": 1.6, "words": 100 }, "max_output": 32768 }, { "name": "Meta: Llama 3.1 70B Instruct", "model": "meta-llama/llama-3.1-70b-instruct", "pricing": { "coins": 0.7, "words": 100 }, "max_output": 32768 }, { "name": "Mistral: Codestral Mamba", "model": "mistralai/codestral-mamba", "pricing": { "coins": 0.2, "words": 100 }, "max_output": 256000 }, { "name": "Mistral: Large", "model": "mistralai/mistral-large", "pricing": { "coins": 3, "words": 100 }, "max_output": 128000 }, { "name": "Mistral: Mixtral 8x7B", "model": "mistralai/mixtral-8x7b-instruct", "pricing": { "coins": 1, "words": 100 }, "max_output": 32768 }, { "name": "Nous: Hermes 3 405B Instruct", "model": "nousresearch/hermes-3-llama-3.1-405b", "pricing": { "coins": 0.3, "words": 100 }, "max_output": 18000 }, { "name": "OpenAI: GPT-3.5 Turbo 16k", "model": "openai/gpt-3.5-turbo-0125", "pricing": { "coins": 1, "words": 100 }, "max_output": 4096 }, { "name": "OpenAI: GPT-4", "model": "openai/gpt-4", "pricing": { "coins": 20, "words": 100 }, "max_output": 4096 }, { "name": "OpenAI: GPT-4 Turbo 128k", "model": "openai/gpt-4-turbo-2024-04-09", "pricing": { "coins": 10, "words": 100 }, "max_output": 131072 } ] } ``` -------------------------------- ### Fetch User Information Source: https://documenter.getpostman.com/view/5900072/2s9YyzddrR Retrieves details about the authenticated user, including name, coin balance, and subscription plan. Returns a JSON object containing user data. ```cURL curl --location 'https://api.straico.com/v0/user' \ --header 'Authorization: Bearer $STRAICO_API_KEY' ``` -------------------------------- ### Fetch Models Information using cURL Source: https://documenter.getpostman.com/view/5900072/2s9YyzddrR This snippet demonstrates how to retrieve a list of available AI models from the Straico API using a cURL command. It requires an API key for authentication and targets the /v0/models endpoint. ```bash curl --location 'https://api.straico.com/v0/models' \ --header 'Authorization: Bearer $STRAICO_API_KEY' ``` -------------------------------- ### Authenticate API Requests Source: https://documenter.getpostman.com/view/5900072/2s9YyzddrR All API requests require an Authorization header containing a Bearer token. Ensure the API key is kept secure and handled server-side. ```bash Authorization: Bearer $STRAICO_API_KEY ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.