GET /v1/models/{id}
Read the selected owned resource or current workflow state without starting a new generation.
Request example#
curl 'https://platform.tongai.io/v1/models/example' \ -H "Authorization: Bearer $TONG_API_KEY"Configuration
curl --versionAuthentication#
Use a server-side API key for your account, or OAuth for each customer’s account. Never send keys in prompts or tool arguments.
catalog:readParameters#
idstringRequiredMaximum length: 150 characters.
Request body#
This endpoint has no request body.
Response schema#
{ "workflows": [], "id": "example"}HTTP 200
application/jsontext_modelsobject[]OptionalShow nested fields
idstringRequirednamestringRequiredcontext_tokensintegerRequiredMaximum: 9007199254740991.
max_output_tokensintegerRequiredMaximum: 9007199254740991.
unitstringRequired"THOUSAND_TOKENS"input_creditsstringRequiredA decimal string with six decimal places, for example 1.250000.
output_creditsstringRequiredA decimal string with six decimal places, for example 1.250000.
cached_input_creditsstringRequiredA decimal string with six decimal places, for example 1.250000.
cache_write_creditsstringRequiredA decimal string with six decimal places, for example 1.250000.
pricingstringRequired"display_maximum"requires_exact_quotebooleanRequiredtrueworkflowsobject[]RequiredMaximum items: 10000.
Show nested fields
operationstringRequiredmodelstringRequirednamestringRequiredmodel_namestringRequiredresolutionstring | nullRequiredunitstringRequiredcreditsstring | nullRequiredA decimal string with six decimal places, for example 1.250000.
base_creditsstring | nullRequiredA decimal string with six decimal places, for example 1.250000.
requires_exact_quotebooleanOptionalDefault: false.
pricingstringOptional"configuration_quote""display_rate"Default: "display_rate".
discount_percentnumberRequiredMinimum: 0.
Maximum: 100.
idstringRequiredErrors and limits#
| HTTP | Error | Recovery |
|---|---|---|
400 | Invalid requestREQUEST_INVALID | Correct the fields identified by the error before trying again. |
401 | Invalid credentialCREDENTIAL_INVALID | Check the credential, its expiry and whether it has been revoked. |
402 | Insufficient creditsINSUFFICIENT_CREDITS | Add credits to the account that owns the credential, then continue the saved work. |
403 | Permission deniedSCOPE_REQUIRED | Use a credential with the required scopes and access to the selected resource. |
404 | Resource unavailableRESOURCE_UNAVAILABLE | Check the resource ID and that it belongs to the authorized account. |
409 | Intent conflictIDEMPOTENCY_CONFLICT | Reuse an intent only with its original request. Use a new UUID for a different action. |
429 | Rate limitedRATE_LIMITED | Wait for Retry-After before retrying the same intended request. |
503 | Temporarily unavailableDEPENDENCY_UNAVAILABLE | Wait for Retry-After and retry with the same intent. Check the saved operation after a timeout. |