Portkey API
The Portkey REST API. Please see https://portkey.ai/docs/api-reference for more details.
What You Can Do
MCP Tools
createchatcompletion
Chat
connectrealtime
Realtime
createcompletion
Completions
post-collections
Create a new collection
get-collections
List collections
get-collections-collectionid
Get collection details
put-collections-collectionid
Update collection
delete-collections-collectionid
Delete collection
createlabel
Create a new label
listlabels
List labels
getlabel
Get a label by ID
updatelabel
Update a label
deletelabel
Delete a label
createprompt
Create a new prompt
listprompts
List prompts
getprompt
Get a prompt by ID or slug
updateprompt
Update a prompt
deleteprompt
Delete a prompt
getpromptversions
Get all versions of a prompt
getpromptbyversion
Get a specific version of a prompt
updatepromptversion
Update a specific version of a prompt
updatepromptdefault
Set a version as the default for a prompt
createpromptpartial
Create a new prompt partial
listpromptpartials
List prompt partials
getpromptpartial
Get a prompt partial by ID or slug
updatepromptpartial
Update a prompt partial
deletepromptpartial
Delete a prompt partial
getpromptpartialversions
Get all versions of a prompt partial
updatepromptpartialdefault
Set a version as the default for a prompt partial
createpromptcompletion
Prompts Completions
createpromptrender
Prompts Render
createguardrail
Create a new guardrail
listguardrails
List guardrails
getguardrail
Get a specific guardrail
updateguardrail
Update a guardrail
deleteguardrail
Delete a guardrail
createimage
Create Image
createimageedit
Create Image Edit
createimagevariation
Creates Image Variation
createembedding
Embeddings
creatererank
Rerank
createspeech
Create Speech
createtranscription
Create Transcription
createtranslation
Create Translation
listfiles
List Files
createfile
Upload a file to be used across various endpoints, such as Assistant (<2M tokens), Fine-Tuning, and Batch (<100 MB). Total size of your bucket is 100 GB.
deletefile
Delete File
retrievefile
Returns information about a specific file.
downloadfile
Returns the contents of the specified file.
createfinetuningjob
Create a Finetune Job
listpaginatedfinetuningjobs
List your organization's fine-tuning jobs
retrievefinetuningjob
Get info about a fine-tuning job. [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
listfinetuningevents
Get status updates for a fine-tuning job.
cancelfinetuningjob
Immediately cancel a fine-tune job.
listfinetuningjobcheckpoints
List checkpoints for a fine-tuning job.
listmodels
List Available Models
retrievemodel
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
deletemodel
Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.
createmoderation
Identify potentially harmful content in text and images. **Only** works with [OpenAI's Moderations endpoint](https://platform.openai.com/docs/guides/moderation) currently.
listassistants
Returns a list of assistants.