Inflection-3 comprises two models designed for distinct purposes:
Since these models learn over time, experiment with various prompts and conversation styles. Pi will also mirror your tone and style, so if you use more emojis, so will Pi!
To start generating API keys, all new users must provide valid credit card information and make an initial deposit of $100 to their account. This ensures a seamless onboarding experience and uninterrupted access to our services.
Model | Pricing for Input Tokens | Pricing for Output Tokens |
---|---|---|
Productivity Pi | $2.50 per 1M | $10 per 1M |
Pi 3.0 | $2.50 per 1M | $10 per 1M |
Both models currently support a 8k context window.
After each session, users can easily monitor their API usage through intuitive, real-time usage graphs. These tools provide transparency and control, allowing users to track their consumption and manage their balance effectively.
For added convenience, you can set a customizable account auto-reload threshold. If your balance falls below the designated threshold, the credit card on file will be automatically charged with an auto-reload amount of your choosing. Both the threshold and the top-up amounts are fully configurable to align with your needs, providing flexibility and peace of mind.
To access and interact with the Inflection AI API, every request must include a valid API key. This key serves as a token that authenticates your organization or personal account with the API, ensuring secure and authorized usage. Below, we’ll walk through how to obtain your API key and demonstrate the process of including it in your requests.
To begin using the Inflection AI API, you need to obtain an API key. Follow these steps to retrieve your key:
cUrl
command provided or go to Playground
page and try the key out.Your API key is a long string that resembles the following example:
nfHB2f...IrQNMm4
This key must be included in the headers of all API requests to authenticate the client. Ensure that you replace
nfHB2f...IrQNMm4
with your actual key.
For each request to the Inflection AI API, include the Authorization
header with the value Bearer <YOUR_API_KEY>
.
Here’s an example using cURL
to authenticate:
curl --location 'https://layercake.pubwestus3.inf7ks8.com/external/api/inference' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"context": [
{
"text": "Hi",
"type": "Human"
}
],
"config": "inflection_3_pi"
}'
In this example:
Authorization
header is used to pass your API key.Bearer
prefix is mandatory and must precede your API key.Content-Type
header specifies that the request is in JSON format.--data
flag includes the request payload with the input context and configuration.In the event of an authentication failure, the API will return an appropriate error message. Below are the common authentication-related error codes:
401 Unauthorized: This error indicates that the API key is missing, invalid, or expired. Ensure
that the Authorization
header is properly configured with the correct API key.
403 Forbidden: This error occurs when the API key does not have the required permissions to access the requested resource.
Example of an authentication error response:
{
"detail": "Forbidden"
}
In such cases, double-check that the API key is valid and that it has the necessary permissions for the API resources you're accessing.
Inflection's developer portal supports a notion of workspaces to allow developers to collaborate sharing keys and billing details.
You can switch between workspaces using the drop down on the left hand side and view members of your current workspace on the Workspace page.
By default, every user has a personal workspace to which only they belong. You can create a new workspace by:
Currently inviting and removing users is only availble to workspace admins.
To invite users to a workspace, navigate to the Workspace page and select the Invite user button. Then, enter the email for the user you wish to invite. The user you are inviting must already have an account on the developer portal.
After a user is invited, the next time they log-in, they will see any workspace invitations at the top of the Playground page where they can select either Accept or Decline.
To remove a user from an organization, navigate to the Workspace page and click on the trash icon associated with the user you wish to remove.
Building on your understanding of the Inflection AI API and initial experiments, this section provides comprehensive prompt examples designed to demonstrate the versatility and depth of our models. These examples illustrate various use cases, ranging from conversational intelligence to advanced problem-solving, enabling you to harness the full potential of the Pi.
We encourage you to adapt and refine these examples to suit your specific requirements, driving deeper insights and innovation as you engage with our AI platform.