Skip to content

Commit 3e3e11d

Browse files
authored
Update inference API endpoints to use the new wormhole host URL (#617)
1 parent fcc4c57 commit 3e3e11d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/docs/inference.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You can use the following inference APIs to run inference on your data:
99
### `POST /v0/infer/`
1010
This is the main API for running inference. This will send your data to the inference engine and start the inference process. Example request:
1111
```bash
12-
curl -X POST https://models.exosphere.host/v0/infer/ \
12+
curl -X POST https://wormhole.exosphere.host/v0/infer/ \
1313
-H "Content-Type: application/json" \
1414
-H "Authorization: Bearer <your-api-key>" \
1515
-d '[
@@ -56,7 +56,7 @@ You can track the complete task status using the `GET /v0/infer/task/{task_id}`
5656
### `GET /v0/infer/task/{task_id}/`
5757
This API is used to track the complete task status. Example request:
5858
```bash
59-
curl -X GET https://models.exosphere.host/v0/infer/task/2f92fc35-07d6-4737-aefa-8ddffd32f3fc \
59+
curl -X GET https://wormhole.exosphere.host/v0/infer/task/2f92fc35-07d6-4737-aefa-8ddffd32f3fc \
6060
-H "Authorization: Bearer <your-api-key>"
6161
```
6262
Example response:
@@ -94,7 +94,7 @@ Example response:
9494
### `GET /v0/infer/object/{object_id}/`
9595
This API is used to track the status of an individual object. Example request:
9696
```bash
97-
curl -X GET https://models.exosphere.host/v0/infer/object/63bb0b28-edfe-4f5b-9e05-9232f63d76ec \
97+
curl -X GET https://wormhole.exosphere.host/v0/infer/object/63bb0b28-edfe-4f5b-9e05-9232f63d76ec \
9898
-H "Authorization: Bearer <your-api-key>"
9999
```
100100
Example response:
@@ -128,7 +128,7 @@ Exosphere inference APIs also support the standard batch inference API format us
128128
### `PUT /v0/files/`
129129
This API is used to upload a file to the server. Example request:
130130
```bash
131-
curl -X PUT https://models.exosphere.host/v0/files/mydata.jsonl \
131+
curl -X PUT https://wormhole.exosphere.host/v0/files/mydata.jsonl \
132132
-H "Authorization: Bearer <your-api-key>" \
133133
-F file="@mydata.jsonl"
134134
```
@@ -150,7 +150,7 @@ The expected file content should look like:
150150

151151
Now you can pass the file_id to the `/infer/` API to run inference on the file. Example request:
152152
```bash
153-
curl -X POST https://models.exosphere.host/v0/infer/ \
153+
curl -X POST https://wormhole.exosphere.host/v0/infer/ \
154154
-H "Content-Type: application/json" \
155155
-H "Authorization: Bearer <your-api-key>" \
156156
-d '[
@@ -163,7 +163,7 @@ curl -X POST https://models.exosphere.host/v0/infer/ \
163163

164164
You can further request outputs as a file by passing the header `Output-Format: jsonl` to the API. Example request:
165165
```bash
166-
curl -X POST https://models.exosphere.host/v0/infer/ \
166+
curl -X POST https://wormhole.exosphere.host/v0/infer/ \
167167
-H "Content-Type: application/json" \
168168
-H "Authorization: Bearer <your-api-key>" \
169169
-H "Output-Format: jsonl" \

0 commit comments

Comments
 (0)