Think-Reason-Learn Improve API
The Improve API from Think-Reason-Learn — 1 operation(s) for improve.
The Improve API from Think-Reason-Learn — 1 operation(s) for improve.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/thinkreasonlearn-com:thinkreasonlearn-com-improve-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ThinkReasonLearn Improve API
version: '1'
description: Pretrained, explainable prediction models. Each model scores an input and returns its own fields plus a `common` block that reads the same for every model. `GET /v1/models` lists every model with its input and output schema.
servers:
- url: https://api.thinkreasonlearn.com
security:
- bearer: []
tags:
- name: Improve
paths:
/v1/improve:
post:
operationId: improve
summary: Improve a text
description: 'Scores the text, rewrites what pulled the score down, rescores, and keeps the best version. Every score is charged as a normal call and every rewrite at $0.01 to $0.05. Text models only: the `model` enum lists them.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ImproveRequest'
responses:
'200':
description: The best version and every round.
content:
application/json:
schema:
$ref: '#/components/schemas/Improvement'
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'504':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Improve
components:
schemas:
Improvement:
type: object
properties:
id:
type: string
object:
const: improvement
created:
type: integer
model:
type: string
release:
type: string
field:
type: string
description: The input field that was rewritten.
text:
type: string
description: 'The best version: the original if no rewrite scored higher.'
improved:
type: boolean
before:
$ref: '#/components/schemas/ImprovePoint'
after:
$ref: '#/components/schemas/ImprovePoint'
changes:
type: array
items:
type: string
rounds:
type: array
items:
type: object
properties:
round:
type: integer
text:
type: string
score:
type: number
label:
type: string
kept:
type: boolean
description: Whether this round became the best so far.
changes:
type: array
items:
type: string
warnings:
type: array
items:
type: string
usage:
$ref: '#/components/schemas/Usage'
ImprovePoint:
type: object
properties:
score:
type: number
description: What rounds are compared on; higher is better.
label:
type: string
output:
type: object
description: The model's output for this text.
ImproveRequest:
type: object
properties:
model:
type: string
enum:
- think-reason-learn/linkedin-viral-post-predictor
- think-reason-learn/linkedin-viral-post-predictor-with-account
- think-reason-learn/show-hn-launch-predictor
input:
type: object
description: The model's input, as for POST /v1/predict. `field` holds the text to improve.
rounds:
type: integer
minimum: 1
maximum: 3
default: 2
field:
type: string
description: The input field to rewrite. Defaults to the model's first text field.
required:
- model
- input
Error:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
code:
type: string
enum:
- invalid_api_key
- permission_denied
- invalid_request
- model_not_found
- not_found
- conflict
- insufficient_credits
- monthly_cap_reached
- key_limit_reached
- rate_limited
- upstream_error
- upstream_timeout
- unavailable
- internal_error
required:
- message
- type
- code
required:
- error
Usage:
type: object
properties:
cost_usd:
type: number
description: What this call cost.
latency_ms:
type: integer
securitySchemes:
bearer:
type: http
scheme: bearer
description: An API key from https://api.thinkreasonlearn.com/console/keys.