curl --request GET \
--url https://testnet.edel-api.xyz/v2/agents/modelsimport requests
url = "https://testnet.edel-api.xyz/v2/agents/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testnet.edel-api.xyz/v2/agents/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));use reqwest::blocking::Client;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = Client::new()
.get("https://testnet.edel-api.xyz/v2/agents/models")
.send()?;
println!("{} {}", response.status(), response.text()?);
Ok(())
}
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://testnet.edel-api.xyz/v2/agents/models"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://testnet.edel-api.xyz/v2/agents/models")
.asString();{
"costBasis": "deterministic_pine_no_per_bar_model_calls",
"entryGate": {
"environment": "local",
"enabled": true,
"threshold": 0.745
},
"ownerFunding": {
"status": "available"
},
"models": [
{
"modelId": "<string>",
"maker": "unknown",
"task": "text_generation",
"contextTokens": 123,
"toolCalling": true,
"version": "<string>",
"dataPolicy": "in_network",
"isDefault": true,
"isRecommended": true,
"inputMicroUsdPer1kTokens": 1,
"outputMicroUsdPer1kTokens": 1,
"maxMicroUsdPerCall": 1,
"estimate": {
"runtimeModelCallsPerDay": 1,
"estimatedMicroUsdPerDay": 1,
"autoMarketChoiceMaxMicroUsd": 1
},
"displayName": "<string>"
}
],
"listings": [
{
"modelId": "<string>",
"displayName": "<string>",
"kind": "chat",
"availability": "available",
"isDefault": true,
"unavailableReason": "workers_paid_required",
"maker": "unknown",
"task": "text_generation",
"contextTokens": 123,
"toolCalling": true,
"inputMicroUsdPer1kTokens": 1,
"outputMicroUsdPer1kTokens": 1
}
],
"harnesses": [
{
"harnessId": "pi",
"displayName": "<string>",
"availability": "available",
"isDefault": true
}
]
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}List the models an agent can use, with their cost (v2)
Returns every model an owner may pick for an agent: its id and version, its data policy (in_network, or third_party, which receives the agent’s text and needs the owner’s explicit acceptThirdParty), whether it is the default and whether it is recommended, its input and output price per 1,000 tokens and the most one call may cost, in millionths of a USD. An agent runs a deterministic Pine strategy and makes no model call per bar, so each estimate is 0 model calls and 0 USD per day; the one model call is at create when marketSelection is auto, and autoMarketChoiceMaxMicroUsd is the most it can cost. listings names the decision models (the default one available), the announced models, each available or coming_soon, and every chat model the venue holds that does not answer an agent’s chat: those are unavailable, never in models and never accepted as a choice, with unavailableReason workers_paid_required (the model host serves it only on a paid plan this venue does not hold), provider_refused (the model host refuses it for this venue) or too_slow (its answers take longer than the time a chat answer may take); harnesses names the agent harnesses, where only the default runs and the rest are coming_soon. A coming_soon entry is never accepted by a route. The list changes only with a venue release. Without a model catalog the route answers 503 operation_not_available. ownerFunding says whether an owner can fund their own agent from their own trading balance on this venue now: status available, or status unavailable with one reason (not_offered, account_transfer_not_enabled, account_transfer_unavailable, venue_halted, engine_unreachable); show owner funding as live only on available, and read it again rather than caching it.
curl --request GET \
--url https://testnet.edel-api.xyz/v2/agents/modelsimport requests
url = "https://testnet.edel-api.xyz/v2/agents/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testnet.edel-api.xyz/v2/agents/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));use reqwest::blocking::Client;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = Client::new()
.get("https://testnet.edel-api.xyz/v2/agents/models")
.send()?;
println!("{} {}", response.status(), response.text()?);
Ok(())
}
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://testnet.edel-api.xyz/v2/agents/models"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://testnet.edel-api.xyz/v2/agents/models")
.asString();{
"costBasis": "deterministic_pine_no_per_bar_model_calls",
"entryGate": {
"environment": "local",
"enabled": true,
"threshold": 0.745
},
"ownerFunding": {
"status": "available"
},
"models": [
{
"modelId": "<string>",
"maker": "unknown",
"task": "text_generation",
"contextTokens": 123,
"toolCalling": true,
"version": "<string>",
"dataPolicy": "in_network",
"isDefault": true,
"isRecommended": true,
"inputMicroUsdPer1kTokens": 1,
"outputMicroUsdPer1kTokens": 1,
"maxMicroUsdPerCall": 1,
"estimate": {
"runtimeModelCallsPerDay": 1,
"estimatedMicroUsdPerDay": 1,
"autoMarketChoiceMaxMicroUsd": 1
},
"displayName": "<string>"
}
],
"listings": [
{
"modelId": "<string>",
"displayName": "<string>",
"kind": "chat",
"availability": "available",
"isDefault": true,
"unavailableReason": "workers_paid_required",
"maker": "unknown",
"task": "text_generation",
"contextTokens": 123,
"toolCalling": true,
"inputMicroUsdPer1kTokens": 1,
"outputMicroUsdPer1kTokens": 1
}
],
"harnesses": [
{
"harnessId": "pi",
"displayName": "<string>",
"availability": "available",
"isDefault": true
}
]
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}Response
Success