PhoenixLLM
Good to know: All LLM interfaces need to use token as the request header.
Creating a LLM job
POST
https://www.phoenix.global/sdk/computation/LLM/createLLMJob
Headers
Name | Type | Description |
---|---|---|
token* | string | The token generated in the previous step |
Request Body
Name | Type | Description |
---|---|---|
tokensNum* | integer | The number of tokens to be purchased |
jobName* | string | Job name |
The usage of curl and golang sdk is as follows:
Querying LLM price
GET
https://www.phoenix.global/sdk/computation/LLM/queryLLMPrice
Querying the price of LLM token, priced in ccd
Headers
Name | Type | Description |
---|---|---|
token* | string | The token generated in the previous step |
The usage of curl and golang sdk is as follows:
Calling LLM
The usage of golang sdk is as follows: