bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 31쪽 중 28쪽
mption rate based on its complexity, capability, and computational cost.
For **plan subscribers** (*Basic*, *Professional*, or higher tiers), all model interactions draw from a **shared usage pool**. This means you can use any model available under your plan, and your total usage will count toward a single shared credit allowance — rather than having separate limits for each model.
This shared system provides maximum flexibility, allowing you to switch between models seamlessly while staying within your daily or hourly quota.
This limit is designed to ensure fair and balanced usage for all users. If you anticipate needing a higher request limit, please consider optimizing your implementation or reach out to us for assistance.
For further details on **usage limits, full breakdown of rates, and how IO Credits are billed**, refer to the [**IO Intelligence Payments**](/docs/guides/payment/io-intelligence-payments) page.
## Introduction
You can interact with the API using HTTP requests from any programming language or by using the official Python.
To install the official Python library, run the following command:
```
pip install iointel
```
### Example: Using the AI Agents API in Python
The following is an example of how you can use the `iointel Python` library to interact with the *IO Intelligence APIs*:
<CodeGroup>
```python Python theme={null}
from iointel import (
Agent,
Workflow
)
import os
import asyncio
api_key = os.environ["OPENAI_API_KEY"] # Replace with your actual IO.net API key
text = """In the rapidly evolving landscape of artificial intelligence, the ability to condense vast amounts of information into concise and meaningful summaries is crucial. From research papers and business reports to legal documents and news articles, professionals across industries rely on summarization to extract key insights efficiently. Traditional summarization techniques often struggle with maintaining coherence and contextual relevance. However, advanced AI models now leverage natural language understanding to identify core ideas, eliminate redundancy, and generate human-like summaries. As organizations continue to deal with an ever-growing influx of data, the demand for intelligent summarization tools will only increase. Whether enhancing productivity, improving decision-making, or streamlining workflows, AI-powered summarization is set to become an indispensable asset in the digital age."""
agent = Agent(
name="Summarize Agent",
instructions="You are an assistant specialized in summarization.",
model="meta-llama/Llama-3.3-70B-Instruct",
api_key=api_key,
base_url="https://api.intelligence.io.solutions/api/v1"
)
workflow = Workflow(objective=text, client_mode=False)
async def run_workflow():
results = (await workflow.summarize_text(max_words=50,agents=[agent]).run_tasks())["results"]
return results
results = asyncio.run(run_workflow())
print(results)
```
</CodeGroup>
This snippet demonstrates how to configure the client, send a chat completion request using the `Llama-3.3-70B-Instruct` agent, and retrieve a response.
<Warning>
`run_tasks()` is now asynchronous. All usage must be wrapped inside an async function. Use asyncio.run() to execute it.
</Warning>
## Authentication
### API Keys
*IO Intelligence APIs* authenticate requests using **API keys**. You can generate API keys from the [API Keys tab](https://ai.io.net/ai/api-keys) under **IO Intelligence**.
<Warning>
Always treat your API key as a secret. Do not share it or expose it in client-side code (e.g., browsers or mobile apps). Instead, store it securely in an environment variable or a key management service on your backend server.
</Warning>
Include the API key in an `Authorization` HTTP header for all API requests:
```
Authorization: Bearer \$IOINTELLIGENCE_API_KEY
```
### Example: List Available Agents
The following is an example `curl` command to list all agents available in **IO Intelligence**:
<CodeGroup>
```curl curl theme={null}
curl https://api.intelligence.io.solutions/api/v1/agents /
-H "Authorization: Bearer \$IOINTELLIGENCE_API_KEY"
```
</CodeGroup>
<Frame>
<img alt="" />
</Frame>
This request should return a response as follows:
<CodeGroup>
```json json theme={null}
{
"agents": {
"reasoning_agent": {
"name": "Reasoning Agent",
"description": "A logic-driven problem solver that breaks down complex scenarios into clear, step-by-step conclusions. Whether evaluating arguments, making inferences, or troubleshooting issues, this agent excels at structured thinking and insightful analysis.",
"persona": null,
"metadata": {
"image_url": null,
"tags": [
"text"
]
}
},
"summary_agent": {
...
},
"sentiment_analysis_agent": {
...
},
...
}
}
```
</CodeGroup>
With these steps, you have successfully made your first request to the ***IO Intelligence Agents API***.
For further details on **Agents, Workflows, and API Endpoints**, check out the [IO Intelligence Agent Framework](/docs/guides/intelligence/agent-framework).
# Delete a Secret
Source: https://io.net/docs/reference/ai-agents/secret-management-delete
openapi/ai-agents/secret-management-delete.json DELETE /api/v1/secrets/{secret_id}
Deletes an existing secret and its associated configuration.
This endpoint allows you to permanently remove a registered secret from storage, revoking access for any tool previously authorized to use it. Once deleted, the secret and its associations cannot be recovered.
<Note>
The API supports multiple authentication mechanisms, but only **one** needs to be provided per request. You may authenticate using **any** of the following headers, a browser-issued JWT `token`, an `Authorization` header, or an `x-api-key` header (io.net API key).
</Note>
# Get Secret Details
Source: https://io.net/docs/reference/ai-agents/secret-management-get
openapi/ai-agents/secret-management-get.json GET /api/v1/secrets/{secret_id}
Retrieves details for a specific secret.
This endpoint allows you to access detailed information about a registered secret, including its associated tool, argument, and configuration details. The actual secret value is never returned in the response for security reasons.
<Note>
The API supports multiple authentication mechanisms, but only **one** needs to be provided per request. You may authenticate using **any** of the following headers, a browser-issued JWT `token`, an `Authorization` header, or an `x-api-key` header (io.net API key).
</Note>
<Note>
The `display` field returned in the response provides a partially masked representation of the secret value. It shows only the first and last few characters, ensuring that at least part of the value remains hidden. Complete visibility is only possible for very short secrets (typically 4 characters or fewer).
</Note>
<Tip>
When retrieving secrets, wildcard patterns can be used to simplify configuration. For example, instead of specifying each *Linear* subtool individually (such as `agno__linear__get_user_details`, `agno__linear__get_issue_details`, and others), a single wildcard pattern like `agno__linear__*` can be used to apply the secret across all related Linear tools.
</Tip>
# Update Secret Details
Source: https://io.net/docs/reference/ai-agents/secret-management-patch
openapi/ai-agents/secret-management-patch.json PATCH /api/v1/secrets/{secret_id}
Updates an existing secret or its associated metadata.Updates an existing secret or its associated metadata.
This endpoint allows you to modify one or more properties of a previously registered secret, such as its value, linked tool, or default configuration. Only the fields provided in the request body will be updated, and omitted fields will remain unchanged.
<Note>
The API supports multiple authentication mechanisms, but only **one** needs to be provided per request. You may authenticate using **any** of the following headers, a browser-issued JWT `token`, an `Authorization` header, or an `x-api-key` header (io.net API key).
</Note>
<Note>
The system imposes an overall implementation-specific limit on the total size of stored secrets. If a request attempts to store a secret, or a combination of secrets, that exceeds this limit, the API will return an **HTTP 413 (Payload Too Large)** error.
</Note>
<Tip>
When updating secrets, wildcard patterns can be used. For example, instead of specifying each *Linear* subtool individually (such as `agno__linear__get_user_details`, `agno__linear__get_issue_details`, and others), a single wildcard pattern like `agno__linear__*` can be used to apply the secret across all related Linear tools.
</Tip>
### Request body parameters:
`secret_name` – A user-defined identifier for the secret. This value is used to reference and manage the secret in subsequent operations.
`secret_value` – The confidential value associated with the secret. This value is securely stored and made available to the designated tool when access is authorized.
`tool_name` – The name of the single tool that is granted access to this secret. This field accepts only one tool identifier, not an array or list.
`tool_arg` – The specific argument of the tool that this secret applies to.
`is_default_for_tool` – A boolean flag specifying whether this secret should be automatically applied when the associated tool does not receive a value for the argument. This field is optional when using secrets in workflow YAML configurations, but required when defining secrets for built-in agents.
# Create a Secret
Source: https://io.net/docs/reference/ai-agents/secret-management-post
openapi/ai-agents/secret-management-post.json POST /api/v1/secrets/
Creates or registers a new secret for use with specific tools or workflows.
This endpoint allows you to securely store a secret, associate it with a specific tool and argument, and optionally configure it as a default value when the tool is used without explicit input.
<Note>
The API supports multiple authentication mechanisms, but only **one** needs to be provided per request. You may authenticate using **any** of the following headers, a browser-issued JWT `token`, an `Authorization` header, or an `x-api-key` header (io.net API key).
</Note>
<Warning>
Once a secret is created, the value provided in the `secret_value` parameter cannot be retrieved or viewed again through the API. Only metadata about the secret such as its identifier, associated tool, and configuration can be viewed.
</Warning>
<Note>
The system imposes an overall implementation-specific limit on the total size of stored secrets. If a request attempts to store a secret, or a combination of secrets, that exceeds this limit, the API will return an **HTTP 413 (Payload Too Large)** error.
</Note>
<Tip>
When registering secrets, wildcard patterns can be used. For example, instead of specifying each *Linear* subtool individually (such as `agno__linear__get_user_details`, `agno__linear__get_issue_details`, and others), a single wildcard pattern like `agno__linear__*` can be used to apply the secret across all related Linear tools.
</Tip>
### Request body parameters:
`secret_name` – A user-defined identifier for the secret. This value is used to reference and manage the secret in subsequent operations.
`secret_value` – The confidential value associated with the secret. This value is securely stored and made available to the designated tool when access is authorized.
`tool_name` – The name of the single tool that is granted access to this secret. This field accepts only one tool identifier, not an array or list.
`tool_arg` – The specific argument of the tool that this secret applies to.
`is_default_for_tool` – A boolean flag specifying whether this secret should be automatically applied when the associated tool does not receive a value for the argument. This field is optional when using secrets in workflow YAML configurations, but required when defining secrets for built-in agents.
# Workflows Run
Source: https://io.net/docs/reference/ai-agents/workflows-run
openapi/ai-agents/workflows-run.json POST /api/v1/workflows/run
Enables users to execute AI-driven workflows by submitting text inputs to one or more AI agents.
<Warning>
**Beta Notice:** This project is in rapid development and may not be stable for production use.
</Warning>
The **Workflows Run API** allows users to execute AI-powered workflows by submitting text input and specifying one or more AI agents to process the data. This API is designed for automation, decision-making, and data analysis tasks using multiple AI capabilities.
# Workflows Schema
Source: https://io.net/docs/reference/ai-agents/workflows-schema
openapi/ai-agents/workflows-schema.json GET /api/v1/workflows/schema
Get a list of default workflows.
<Warning>
**Beta Notice:** This project is in rapid development and may not be stable for production use.
</Warning>
# Create Chat Completion
Source: https://io.net/docs/reference/ai-models/create-chat-completion
openapi/ai-models/create-chat-completion.json POST /api/v1/chat/completions
Creates a model response for a given chat conversation.
<Note>
Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide.
</Note>
# Models List
Source: https://io.net/docs/reference/ai-models/get-models-list
openapi/ai-models/get-models-list.json GET /api/v1/models
Retrieves a list of available models for the Chat Completions API.
# Getting Started with AI Models API
Source: https://io.net/docs/reference/ai-models/get-started-with-io-intelligence-api
<iframe title="Get Started with the IO Intelligence API" />
### Important Note on Usage Limits
Each model within **IO Intelligence** has its own value and credit consumption rate based on its complexity, capability, and computational cost.
For **plan subscribers** (*Basic*, *Professional*, or higher tiers), all model interactions draw from a **shared usage pool**. This means you can use any model available under your plan, and your total usage will count toward a single shared credit allowance — rather than having separate limits for each model.
This shared system provides maximum flexibility, allowing you to switch between models seamlessly while staying within your daily or hourly quota.
This limit is designed to ensure fair and balanced usage for all users. If you anticipate needing a higher request limit, please consider optimizing your implementation or reach out to us for assistance.
For further details on **usage limits, full breakdown of rates, and how IO Credits are billed**, refer to the [**IO Intelligence Payments**](/docs/guides/payment/io-intelligence-payments) page.
## Introduction
You can interact with the API using HTTP requests from any programming language or by using the official Python and Node.js libraries.
To install the official Python library, run the following command:
```
pip install openai
```
To install the official Node.js library, run this command in your Node.js project directory:
```
npm install openai
```
### Example: Using the IO Intelligence API with Python
Here’s an example of how you can use the `openai Python` library to interact with the IO Intelligence API:
<CodeGroup>
```python openai Python theme={null}
import openai
client = openai.OpenAI(
api_key="$IOINTELLIGENCE_API_KEY",
base_url="https://api.intelligence.io.solutions/api/v1/",
)
response = client.chat.completions.create(
model="meta-llama/Llama-3.3-70B-Instruct",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hi, I am doing a project using IO Intelligence."},
],
temperature=0.7,
stream=False,
max_completion_tokens=50
)
print(response.choices[0].message.content)
```
</CodeGroup>
This snippet demonstrates how to configure the client, send a chat completion request using the `Llama-3.3-70B-Instruct` model, and retrieve a response.
## Authentication
### API keys
IO Intelligence APIs authenticate requests using API keys. You can [generate API keys from your user](https://ai.io.net/ai/api-keys) account:
<Warning>
Always treat your API key as a secret. Do not share it or expose it in client-side code (e.g., browsers or mobile apps). Instead, store it securely in an environment variable or a key management service on your backend server.
</Warning>
Include the API key in an `Authorization` HTTP header for all API requests:
```
Authorization: Bearer \$IOINTELLIGENCE_API_KEY
```
### Example: List Available Models
Here's an example `curl` command to list all models available in IO Intelligence:
<CodeGroup>
```curl curl theme={null}
curl https://api.intelligence.io.solutions/api/v1/models /
-H "Authorization: Bearer \$IOINTELLIGENCE_API_KEY"
```
</CodeGroup>
<Frame>
<img alt="" />
</Frame>
An example response is as follows:
<CodeGroup>
```json json theme={null}
{
"object": "list",
"data": [
{
"id": "meta-llama/Llama-3.3-70B-Instruct",
"object": "model",
"created": 1736168795,
"owned_by": "io-intelligence",
"root": null,
"parent": null,
"max_model_len": null,
"permission": [
{
"id": "modelperm-30ac078e67ab456a9279d53cf83155bb",
"object": "model_permission",
"created": 1736755239,
"allow_create_engine": false,
"allow_sampling": true,
"allow_logprobs": true,
"allow_search_indices": false,
"allow_view": true,
"allow_fine_tuning": false,
"organization": "*",
"group": null,
"is_blocking": false
}
]
},
...
]
}
```
</CodeGroup>
## Making requests
The example below demonstrates how to make a request to the Chat Completions endpoint using `curl`. To test the API, replace `$IOINTELLIGENCE_API_KEY` with your actual API key and modify the input values as shown.
<CodeGroup>
```curl curl theme={null}
curl https://api.intelligence.io.solutions/api/v1/chat/completions /
-H "Content-Type: application/json" /
-H "Authorization: Bearer \$IOINTELLIGENCE_API_KEY" /
-d '{
"model": "meta-llama/Llama-3.3-70B-Instruct",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"reasoning_content": true,
"temperature": 0.7
}'
```
</CodeGroup>
<Frame>
<img alt="" />
</Frame>
This example queries the `meta-llama/Llama-3.3-70B-Instruct` model to generate a chat completion for the input: "*Say this is a test!*".
### Example Response
The API should return a response as follows:
<CodeGroup>
```json json theme={null}
{
"id": "01945ea6-1d9f-9d46-efbc-2608dcc78169",
"object": "chat.completion",
"created": 1736754732,
"model": "meta-llama/Llama-3.3-70B-Instruct",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "This is a test!"
},
"logprobs": null,
"finish_reason": "stop",
"stop_reason": null
}
],
"usage": {
"prompt_tokens": 12,
"total_tokens": 18,
"completion_tokens": 6,
"prompt_tokens_details": null
},
"prompt_logprobs": null
}
```
</CodeGroup>
### Key Details in the Response
* **finish\_reason**: Indicates why the generation stopped (e.g., "stop").
* **choices**: Contains the generated response(s). Adjust the n parameter to generate multiple response choices.
# Uploading Images
Source: https://io.net/docs/reference/ai-models/uploading-images
The io.net Intelligence API supports image inputs for vision-enabled AI models. This allows users to send images as part of their API requests, enabling advanced multimodal AI capabilities.
**Supported Models for Image Processing**
| Model Name | Capabilities |
| - | - |
| *meta-llama/Llama-3.2-90B-Vision-Instruct* | Multi-modal vision model supporting image understanding. |
| *Qwen/Qwen2-VL-7B-Instruct* | Supports both text and image-based inputs for AI interactions. |
### Sending an Image via API Request
The API allows **two methods** to send an image:
1. **Passing an Image URL** (recommended for publicl프로젝트로 돌아가기