Inline prompt boost, resizable prompt/form, final job price - #21
Merged
Conversation
Three additions to the request form and job list:
1. Inline prompt boost — a "Boost in request" checkbox next to the prompt
sends `enhance_prompt` with the generation request, so deAPI boosts the
prompt as a pre-step of the job instead of rewriting the field first (the
manual Boost button stays). Only /images/generations, /images/edits,
/videos/generations and /videos/animations accept the flag; the choice is
remembered per endpoint. The boost is billed separately from the inference
(the job's own `price` covers inference only), and the /price endpoints do
not accept the flag — so the proxy strips it from every price payload and
quotes the fee via /prompts/enhancements/price, reporting it alongside the
estimate rather than inside it. The boosted prompt comes back on the job
status and is shown in a new self-hiding PROMPT BOOST panel (original →
boosted, with copy).
2. Prompt field sizing — the prompt textarea fills the form panel (twice the
slack of secondary text fields) and can be dragged to a fixed height that is
remembered per field, with a reset control. A splitter under the form panel
resizes the whole form against the jobs list, also persisted.
3. Final price — deAPI reports `price` {amount, is_estimated} once a request is
terminal. It is persisted on the job and merged into the live row, so the
badge shows the estimate while the job runs and the charged price after: one
figure when they match, estimate struck through next to the final figure when
they differ, and a `~` marker while a partner-model charge is still settling.
Verified against the live API: enhance_prompt accepted end-to-end,
prompt_boosted/prompt_boost/price returned, boost quoted at /prompts/
enhancements/price and charged outside the job price.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Measured against the live API: the dev/sandbox environments quote the prompt boost at 0, so the "+$0" badge and "+ boost $0" note carried no information. Only report the fee when there is one. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The job info column wrapped to three lines once a price, a boost fee and the boosted chip sat next to the full request id. Now line one carries the endpoint, the prices and the boosted chip on a single nowrap row, and the request id drops to line two in front of the prompt preview (click it to copy). The status column gets left padding — it had room to spare. The prompt-boost panel no longer sits under every boosted job: the "boosted" chip toggles it, so it costs no vertical space until asked for. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
szwagros
approved these changes
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three additions to the request form and the jobs list, plus what the live API actually does with each.
1. Inline prompt boost (
enhance_prompt)A Boost in request checkbox next to the prompt sends
enhance_promptwith the generation request, so deAPI boosts the prompt as a pre-step of the job instead of rewriting the field first. The manual Boost button stays for the "rewrite it in the form, let me edit it" flow./images/generations,/images/edits,/videos/generations,/videos/animations) — the checkbox appears only there.1, not"true"— Laravel'sbooleanrule rejects the string.✨ boostedchip: original → boosted, with copy.2. Prompt field / form sizing
3. Final price
deAPI reports
price{amount, is_estimated}once a request is terminal. It is persisted on the job and merged into the live row, so the badge shows the estimate while the job runs and the charged price after: one figure when they match, estimate struck through next to the final figure when they differ, and a~marker while a partner-model charge is still settling.Billing: measured, not assumed
The
/priceendpoints do not acceptenhance_prompt, so the boost fee is quoted separately atPOST /prompts/enhancements/price(multipart, top-level{price}). The open question was whether that fee lands inside the job'sprice. Measured on the live API — balance before/after each request, with no-boost controls and repeats to beat background traffic on the account:priceprice.amountequals the/pricequote exactly, in every run, boosted or not — it covers the inference only.So the estimate compared against the final price is the base quote, and the boost is reported next to it as
+$Xrather than folded in — folding it in would show a phantom difference on every boosted job. Dev/sandbox environments quote the boost at 0, and there the badge is hidden.Not covered
Partner models (
is_estimated: true, where the charge settles after inference — the UI marks those with~), refund behaviour when a job fails after a successful boost, and the 422 path for a model with no booster guide.🤖 Generated with Claude Code