You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/gateway.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,34 +41,35 @@ print(result.output)
41
41
The first known use of "hello, world" was in a 1974 textbook about the C programming language.
42
42
"""
43
43
```
44
-
# Quick Start
44
+
45
+
## Quick Start
45
46
46
47
This section contains instructions on how to set up your account and run your app with Pydantic AI Gateway credentials.
47
48
48
-
## Create an account
49
+
###Create an account
49
50
50
51
Using your GitHub or Google account, sign in at [gateway.pydantic.dev](https://gateway.pydantic.dev).
51
52
Choose a name for your organization (or accept the default). You will automatically be assigned the Admin role.
52
53
53
54
A default project will be created for you. You can choose to use it, or create a new one on the [Projects](https://gateway.pydantic.dev/admin/projects) page.
54
55
55
-
## Add **Providers**
56
+
###Add **Providers**
56
57
There are two ways to use Providers in the Pydantic AI Gateway: you can bring your own key (BYOK) or buy inference through the platform.
57
58
58
-
### Bringing your own API key (BYOK)
59
+
####Bringing your own API key (BYOK)
59
60
60
61
On the [Providers](https://gateway.pydantic.dev/admin/providers) page, fill in the form to add a provider. Paste your API key into the form under Credentials, and make sure to **select the Project that will be associated to this provider**. It is possible to add multiple keys from the same provider.
61
62
62
-
### Use Built-in Providers
63
+
####Use Built-in Providers
63
64
Go to the Billing page, add a payment method, and purchase $15 in credits to activate built-in providers. This gives you single-key access to all available models from OpenAI, Anthropic, Google Vertex, AWS Bedrock, and Groq.
64
65
65
-
## Grant access to your team
66
+
###Grant access to your team
66
67
On the [Users](https://gateway.pydantic.dev/admin/users) page, create an invitation and share the URL with your team to allow them to access the project.
67
68
68
-
## Create Gateway project keys
69
+
###Create Gateway project keys
69
70
On the Keys page, Admins can create project keys which are not affected by spending limits. Users can only create personal keys, that will inherit spending caps from both User and Project levels, whichever is more restrictive.
70
71
71
-
# Usage
72
+
##Usage
72
73
After setting up your account with the instructions above, you will be able to make an AI model request with the Pydantic AI Gateway.
73
74
The code snippets below show how you can use PAIG with different frameworks and SDKs.
74
75
You can add `gateway/` as prefix on every known provider that
@@ -85,7 +86,7 @@ Examples of providers and models that can be used are:
0 commit comments