docs/docs/marketplace/plugins/portkey.md
ToolJet can integrate with Portkey to access AI services such as text completion, chat completion, prompt completion, and embedding creation. This integration enables ToolJet to leverage Portkey's LMOps platform to develop, launch, maintain, and iterate on generative AI features.
<div style={{textAlign: 'center', paddingBottom: '24px'}}> </div>:::note Before following this guide, it is assumed that you have already completed the process of Using Marketplace plugins. :::
To connect to Portkey, the following credentials are required:
Portkey in ToolJet supports the following operations:
This operation generates text completions based on a given prompt.
<details id="tj-dropdown">
<summary>**Response Example**</summary>
```json
{ "id": "cmpl-9vNUfM8OP0SwSqXcnPwkqzR7ep8Sy", "object": "text_completion", "created": 1723462033, "model": "gpt-3.5-turbo-instruct", "choices": [ { "text": "nn"Experience the perfect brew at Bean There."", "index": 0, "logprobs": null, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 13, "completion_tokens": 10, "total_tokens": 23 } } ``` </details>
This operation generates chat completions based on a series of messages.
This operation generates completions based on a pre-defined prompt.
This operation creates embeddings for given input text.
For all operations, you can optionally specify: