Skip to content

Commit c4ea900

Browse files
authored
Merge branch 'main' into gh-build-args-mintlify
2 parents e42a1d4 + cc9592b commit c4ea900

File tree

163 files changed

+11102
-4509
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+11102
-4509
lines changed

.cursor/rules/rp-styleguide.mdc

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,21 @@ description:
33
globs:
44
alwaysApply: true
55
---
6+
67
Always use sentence case for headings and titles.
78
These are proper nouns: Runpod, Pods, Serverless, Hub, Instant Clusters, Secure Cloud, Community Cloud, Tetra.
89
These are generic terms: endpoint, worker, cluster, template, handler, fine-tune, network volume.
9-
Prefer using paragraphs to bullet points unless specifically requested.
10-
When using bullet points, use hyphens instead of asterisks, and end each line with a period.
10+
11+
Prefer using paragraphs to bullet points unless directly asked.
12+
When using bullet points, end each line with a period.
13+
14+
When creating a tutorial, always include these sections:
15+
16+
- What you'll learn
17+
- Requirements (rather than "prerequisites")
18+
19+
And number steps like this:
20+
21+
"## Step 1: Create a widget"
22+
23+
... and so on.

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Bug report
33
about: Create a report to help us improve
44
title: "[Bug]"
55
labels: ''
6-
assignees: AllysonRosenthal, rachfop
6+
assignees: muhsinking
77

88
---
99

@@ -24,7 +24,7 @@ A clear and concise description of what you expected to find.
2424
**Screenshots**
2525
If applicable, add screenshots to help explain your problem.
2626

27-
## If describing a mismatch with a RunPod product, please include the following information about your environment:
27+
## If describing a mismatch with a Runpod product, please include the following information about your environment:
2828

2929
**Desktop:**
3030

.github/ISSUE_TEMPLATE/documentation-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Documentation request
33
about: Suggest an idea for this project
44
title: "[Request]"
55
labels: ''
6-
assignees: AllysonRosenthal, rachfop
6+
assignees: muhsinking
77

88
---
99

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ helpers/__pycache__/** */
2929
# Webstorm
3030
.idea/*
3131

32-
CLAUDE.md
32+
CLAUDE.md
33+
/.mintlify-last

.vale.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ MinAlertLevel = suggestion
55
Packages = Google, Readability
66

77
[*]
8-
BasedOnStyles = Readability, RunPod, Google
8+
BasedOnStyles = Readability, Runpod, Google

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RunPod documentation site
1+
# Runpod documentation site
22

33
This website is built using [Mintlify](https://mintlify.com/).
44

api-reference/openapi.json

Lines changed: 70 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
},
9898
"summary": "Documentation Page",
9999
"description": "Interactive API documentation.",
100-
"operationId": "GetDocs",
100+
"operationId": "GetDocs"
101101
}
102102
},
103103
"/pods": {
@@ -496,7 +496,7 @@
496496
}
497497
],
498498
"responses": {
499-
"200": {
499+
"204": {
500500
"description": "Pod successfully deleted."
501501
},
502502
"400": {
@@ -886,7 +886,7 @@
886886
}
887887
],
888888
"responses": {
889-
"200": {
889+
"204": {
890890
"description": "Endpoint successfully deleted."
891891
},
892892
"400": {
@@ -987,6 +987,38 @@
987987
"summary": "List templates",
988988
"description": "Returns a list of templates.",
989989
"operationId": "ListTemplates",
990+
"parameters": [
991+
{
992+
"name": "includeEndpointBoundTemplates",
993+
"in": "query",
994+
"schema": {
995+
"type": "boolean",
996+
"default": false,
997+
"example": true,
998+
"description": "Include templates bound to Serverless endpoints in the response."
999+
}
1000+
},
1001+
{
1002+
"name": "includePublicTemplates",
1003+
"in": "query",
1004+
"schema": {
1005+
"type": "boolean",
1006+
"default": false,
1007+
"example": true,
1008+
"description": "Include community-made public templates in the response."
1009+
}
1010+
},
1011+
{
1012+
"name": "includeRunpodTemplates",
1013+
"in": "query",
1014+
"schema": {
1015+
"type": "boolean",
1016+
"default": false,
1017+
"example": true,
1018+
"description": "Include official Runpod templates in the response."
1019+
}
1020+
}
1021+
],
9901022
"responses": {
9911023
"200": {
9921024
"description": "Successful operation.",
@@ -1016,6 +1048,36 @@
10161048
"description": "Returns a single template.",
10171049
"operationId": "GetTemplate",
10181050
"parameters": [
1051+
{
1052+
"name": "includeEndpointBoundTemplates",
1053+
"in": "query",
1054+
"schema": {
1055+
"type": "boolean",
1056+
"default": false,
1057+
"example": true,
1058+
"description": "Include templates bound to Serverless endpoints in the response."
1059+
}
1060+
},
1061+
{
1062+
"name": "includePublicTemplates",
1063+
"in": "query",
1064+
"schema": {
1065+
"type": "boolean",
1066+
"default": false,
1067+
"example": true,
1068+
"description": "Include community-made public templates in the response."
1069+
}
1070+
},
1071+
{
1072+
"name": "includeRunpodTemplates",
1073+
"in": "query",
1074+
"schema": {
1075+
"type": "boolean",
1076+
"default": false,
1077+
"example": true,
1078+
"description": "Include official Runpod templates in the response."
1079+
}
1080+
},
10191081
{
10201082
"name": "templateId",
10211083
"in": "path",
@@ -1109,7 +1171,7 @@
11091171
}
11101172
],
11111173
"responses": {
1112-
"200": {
1174+
"204": {
11131175
"description": "Template successfully deleted."
11141176
},
11151177
"400": {
@@ -1332,7 +1394,7 @@
13321394
}
13331395
],
13341396
"responses": {
1335-
"200": {
1397+
"204": {
13361398
"description": "Network volume successfully deleted."
13371399
},
13381400
"400": {
@@ -1510,7 +1572,7 @@
15101572
}
15111573
],
15121574
"responses": {
1513-
"200": {
1575+
"204": {
15141576
"description": "Container registry auth successfully deleted."
15151577
},
15161578
"400": {
@@ -2473,7 +2535,7 @@
24732535
"SECURE",
24742536
"COMMUNITY"
24752537
],
2476-
"description": "Set to SECURE to create the Pod in Secure Cloud. Set to COMMUNITY to create the Pod in Community Cloud. To determine which one suits your needs, see https://docs.runpod.io/references/faq/#secure-cloud-vs-community-cloud."
2538+
"description": "Set to SECURE to create the Pod in Secure Cloud. Set to COMMUNITY to create the Pod in Community Cloud. To determine which one suits your needs, see https://docs.runpod.io/pods/overview#pod-types."
24772539
},
24782540
"computeType": {
24792541
"type": "string",
@@ -4315,4 +4377,4 @@
43154377
"ApiKey": []
43164378
}
43174379
]
4318-
}
4380+
}

api-reference/overview.mdx

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: "Introduction"
3+
description: "Use the Runpod API to programmatically manage your compute resources."
4+
---
5+
6+
The Runpod API provides programmatic access to all of Runpod's cloud compute resources. It enables you to integrate GPU infrastructure directly into your applications, workflows, and automation systems.
7+
8+
Use the Runpod API to:
9+
10+
* Create, monitor, and manage Pods for persistent workloads.
11+
* Deploy and scale Serverless endpoints for AI inference.
12+
* Configure network volumes for data persistence.
13+
* Integrate Runpod's GPU computing power into your existing applications and CI/CD pipelines.
14+
15+
The API follows REST principles and returns JSON responses, making it compatible with virtually any programming language or automation tool. Whether you're building a machine learning platform, automating model deployments, or creating custom dashboards for resource management, the Runpod API provides a foundation for seamless integration.
16+
17+
## Available resources
18+
19+
The Runpod API provides complete access to Runpod's core resources:
20+
21+
* **Pods**: Create and manage persistent GPU instances for development, training, and long-running workloads. Control Pod lifecycles, configure hardware specifications, and manage SSH access programmatically.
22+
* **Serverless endpoints**: Deploy and scale containerized applications for AI inference and batch processing. Configure autoscaling parameters, manage worker pools, and monitor job execution in real-time.
23+
* **Network volumes**: Create persistent storage that can be attached to multiple resources. Manage data persistence across Pod restarts and share datasets between different compute instances.
24+
* **Templates**: Save and reuse Pod and endpoint configurations to standardize deployments across projects and teams.
25+
* **Container registry authentication**: Securely connect to private Docker registries to deploy custom containers and models.
26+
* **Billing and usage**: Access detailed billing information and resource usage metrics to optimize costs and monitor spending across projects.
27+
28+
## Getting started
29+
30+
To use the REST API, you'll need a [Runpod API key](/get-started/api-keys) with appropriate permissions for the resources you want to manage. API keys can be generated and managed through your account settings in the Runpod console.
31+
32+
All API requests require authentication using your API key in the request headers. The API uses standard HTTP methods (GET, POST, PATCH, DELETE) and returns JSON responses with detailed error information when needed.
33+
34+
## Retrieve the OpenAPI schema
35+
36+
You can get the complete OpenAPI specification for the Runpod API using the `/openapi.json` endpoint. Use this to generate client libraries, validate requests, or integrate the API specification into your development tools.
37+
38+
The schema includes all available endpoints, request and response formats, authentication requirements, and data models.
39+
40+
<CodeGroup>
41+
42+
```bash cURL
43+
curl --request GET \
44+
--url https://rest.runpod.io/v1/openapi.json \
45+
--header 'Authorization: Bearer RUNPOD_API_KEY'
46+
```
47+
48+
```python Python
49+
import requests
50+
51+
url = "https://rest.runpod.io/v1/openapi.json"
52+
headers = {"Authorization": "Bearer RUNPOD_API_KEY"}
53+
response = requests.get(url, headers=headers)
54+
print(response.json())
55+
```
56+
57+
</CodeGroup>
58+
59+
The endpoint returns the OpenAPI 3.0 specification in JSON format. You can use it with tools like Swagger UI, Postman, or code generation utilities.
60+
61+
For detailed endpoint documentation, request/response schemas, and code examples, explore the sections in the sidebar to the left.

0 commit comments

Comments
 (0)