Submit Inference APIs

The Submit Inference APIs allow you to submit and manage your AI solutions. This suite includes the following primary endpoints:

Summary

  1. Submit/Get/Update/Delete API Configuration: Manage your API configurations and billing information efficiently.
  2. Update/Get Source Open API Specification: Update your source Open API specifications to ensure your API users know how to use it.
  3. Estimate Cost: Estimate cost and play with different billing mechanisms before publishing.
  4. Get Public Open API Specification: Retrieve the public Open API specifications for reference and integration.

Endpoints Section

Submit A New API

This endpoint and method create a new Inference API. The newly created API is in draft mode and requires review and publication before it can be made public. The handle and version identify the API. The system will increase the version number if the handle and version already exist.

Endpoint/utils/inferences/v1
MethodPOST
Tagsplatform, inferences
API PlaygroundClick Here
POST
https://api.xinfer.ai/utils/inferences/v1
# This tab is intentionally left blank.

Get An API

This endpoint and method get an Inference API, which is identified by its ID. If the API is not published, set the preview query parameter to true. If the key is needed, set the showKey query parameter to true.

Endpoint/utils/inferences/v1/{id}
MethodGET
Tagsplatform, inferences
API PlaygroundClick Here
GET
https://api.xinfer.ai/utils/inferences/v1/{id}
# This tab is intentionally left blank.

Update An API

This endpoint and method update an Inference API identified by its id. If the API is published, only a few fields can be updated. The publish query parameter is used to request review and publication.

Endpoint/utils/inferences/v1/{id}
MethodPUT
Tagsplatform, inferences
API PlaygroundClick Here
PUT
https://api.xinfer.ai/utils/inferences/v1/{id}
# This tab is intentionally left blank.

Delete An API

This endpoint and method delete an Inference API identified by its id. If the API is published, it can not be deleted immediately. There is a 7-day grace period for the deletion. After the grace period, the API is unmounted permanently. If the API is not published, it is disabled immediately.

Endpoint/utils/inferences/v1/{id}
MethodDELETE
Tagsplatform, inferences
API PlaygroundClick Here
DELETE
https://api.xinfer.ai/utils/inferences/v1/{id}
# This tab is intentionally left blank.

Clone An API

This endpoint and method clone an Inference API, which is identified by its ID. The new API version is the next available version. If the API is not published, set the preview query parameter to true. If the key is needed, set the showKey query parameter to true.

Endpoint/utils/inferences/clone/v1/{id}
MethodGET
Tagsplatform, inferences
API PlaygroundClick Here
GET
https://api.xinfer.ai/utils/inferences/clone/v1/{id}
# This tab is intentionally left blank.

Update Source OAS

Update Source OpenAPI Spec of an inference API by id.

Endpoint/utils/src-openapi-specs/v1/{id}
MethodPUT
Tagsplatform, src-openapi-spec
API PlaygroundClick Here
PUT
https://api.xinfer.ai/utils/src-openapi-specs/v1/{id}
# This tab is intentionally left blank.

Get Source OAS

Get Source OpenAPI Specification with data include auth security key info of an inference API by id.

Endpoint/utils/src-openapi-specs/with-data/v1/{id}
MethodGET
Tagsplatform, src-openapi-spec
API PlaygroundClick Here
GET
https://api.xinfer.ai/utils/src-openapi-specs/with-data/v1/{id}
# This tab is intentionally left blank.

API Cost Estimation By ID

This API provides minimum, maximum and estimated average cost of 1000 requests for an inference API. The inference API is identified by id. If the API is not published, it requires preview=true query parameter.

Endpoint/utils/inferences/cost/v1/{id}
MethodPOST
Tagsplatform, inferences, cost estimation
API PlaygroundClick Here
POST
https://api.xinfer.ai/utils/inferences/cost/v1/{id}
# This tab is intentionally left blank.

Get OpenAPI Spec By ID

This API provides the estimation and average cost of 1000 requests for an inference API, which is identified by id. If the API is not published, a preview=true query parameter is required.

Endpoint/utils/openapi-specs/v1/{id}
MethodGET
Tagsplatform, openapi-spec, by id
API PlaygroundClick Here
GET
https://api.xinfer.ai/utils/openapi-specs/v1/{id}
# This tab is intentionally left blank.

Get A Call Example By API ID

Get a call example identified by the api id. Only owner, admin, and developer can access this endpoint. The API must under their account_id.

Endpoint/utils/call-examples/v1/{api_id}
MethodGET
Tagsplatform, call-examples, by api id
API PlaygroundClick Here
GET
https://api.xinfer.ai/utils/call-examples/v1/{api_id}
# This tab is intentionally left blank.

Update A Call Example

create a new call example or update an existing one identified by the api id. Only owner, admin, and developer can access this endpoint. The API must under their account_id.

Endpoint/utils/call-examples/v1/{api_id}
MethodPUT
Tagsplatform, call-examples, by api id
API PlaygroundClick Here
PUT
https://api.xinfer.ai/utils/call-examples/v1/{api_id}
# This tab is intentionally left blank.

Was this page helpful?