Parasail
App · 9 actions
Run model inference and inspect Parasail invoices and usage.
Actions
| Action | What it does |
|---|---|
| Create a chat completion | Create a chat completion. |
| Create a model response | Create a model response. |
| Create text embeddings | Create text embeddings. |
| Evaluate decision questions | Evaluate decision questions. |
| Get an invoice | Get an invoice. |
| Get current invoice | Get current invoice. |
| List billing usage breakdowns | List billing usage breakdowns. |
| List invoices | List invoices. |
| List models | List models. |
Create a chat completion
Create a chat completion.
Inputs
- Model
modeltextRequired - Model.
- Messages
messageslistRequired - Conversation messages, each with a role and content.
- Max tokens
max_tokensnumber - Maximum number of tokens to generate.At least 1.
- Temperature
temperaturenumber - Temperature.From 0 to 2.
Outputs
dataobject- The response from Parasail.
Example output
{
"data": {
"choices": [
{
"finish_reason": "example",
"index": 1,
"message": {
"content": "example",
"role": "example"
}
}
],
"id": "example",
"model": "example",
"usage": {
"completion_tokens": 1,
"prompt_tokens": 1,
"total_tokens": 1
}
}
}Create a model response
Create a model response.
Inputs
- Model
modeltextRequired - Model.
- Input
inputtextRequired - Text to send to the model.
- Instructions
instructionstext - Instructions.
- Max output tokens
max_output_tokensnumber - Max output tokens.At least 1.
Outputs
dataobject- The response from Parasail.
Example output
{
"data": {
"error": {},
"id": "example",
"model": "example",
"output": [
{}
],
"status": "example",
"usage": {
"input_tokens": 1,
"output_tokens": 1,
"total_tokens": 1
}
}
}Create text embeddings
Create text embeddings.
Inputs
- Model
modeltextRequired - Model.
- Input
inputlistRequired - Texts to embed, one per item.
Outputs
dataobject- The response from Parasail.
Example output
{
"data": {
"data": [
{
"embedding": [
1
],
"index": 1
}
],
"model": "example",
"object": "example",
"usage": {}
}
}Evaluate decision questions
Evaluate decision questions.
Inputs
- Model
modeltextRequired - Model.
- State
statetextRequired - State.
- Questions
questionsobjectRequired - Named choice, score, or noul questions and instructions.
Outputs
dataobject- The response from Parasail.
Example output
{
"data": {
"answers": {}
}
}Get an invoice
Get an invoice.
Inputs
- Invoice ID
invoice_idtextRequired - Invoice id.
Outputs
dataobject- The response from Parasail.
Example output
{
"data": {
"billable_status": "example",
"end_timestamp": "example",
"id": "example",
"issued_at": "example",
"line_items": [
{}
],
"start_timestamp": "example",
"status": "example",
"total": 1,
"type": "example"
}
}Get current invoice
Get current invoice.
Inputs
None.
Outputs
dataobject- The response from Parasail.
Example output
{
"data": {
"billable_status": "example",
"end_timestamp": "example",
"id": "example",
"issued_at": "example",
"line_items": [
{}
],
"start_timestamp": "example",
"status": "example",
"total": 1,
"type": "example"
}
}List billing usage breakdowns
List billing usage breakdowns.
Inputs
- Status
statustext - Status.One of:
DRAFT,FINALIZED,VOID. - Starting on
starting_ondate and timeRequired - Starting on.
- Ending before
ending_beforedate and timeRequired - Ending before.
- Window size
window_sizetext - Window size.One of:
hour,day. - Skip zero qty line items
skip_zero_qty_line_itemstrue/false - Skip zero qty line items.
- Limit
limitnumber - Limit.
- Next page
next_pagetext - Next page.
Outputs
dataobject- The response from Parasail.
Example output
{
"data": {
"breakdowns": [
{}
],
"next_page": "example"
}
}List invoices
List invoices.
Inputs
- Status
statustext - Status.One of:
DRAFT,FINALIZED,VOID. - Starting on
starting_ondate and time - Starting on.
- Ending before
ending_beforedate and time - Ending before.
Outputs
dataobject- The response from Parasail.
Example output
{
"data": {
"invoices": [
{
"billable_status": "example",
"end_timestamp": "example",
"id": "example",
"issued_at": "example",
"line_items": [
{}
],
"start_timestamp": "example",
"status": "example",
"total": 1,
"type": "example"
}
]
}
}List models
List models.
Inputs
None.
Outputs
dataobject- The response from Parasail.
Example output
{
"data": {
"data": [
{
"created": 1,
"id": "example",
"object": "example",
"owned_by": "example"
}
],
"object": "example"
}
}